Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
MPSolverResponseStatus.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/linear_solver/linear_solver.proto
4// Protobuf Java Version: 4.29.3
5
6package com.google.ortools.linearsolver;
7
23public enum MPSolverResponseStatus
24 implements com.google.protobuf.ProtocolMessageEnum {
168 ;
169
170 static {
171 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
172 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
173 /* major= */ 4,
174 /* minor= */ 29,
175 /* patch= */ 3,
176 /* suffix= */ "",
177 MPSolverResponseStatus.class.getName());
178 }
179
190 public static final int MPSOLVER_OPTIMAL_VALUE = 0;
206 public static final int MPSOLVER_FEASIBLE_VALUE = 1;
217 public static final int MPSOLVER_INFEASIBLE_VALUE = 2;
227 public static final int MPSOLVER_UNBOUNDED_VALUE = 3;
237 public static final int MPSOLVER_ABNORMAL_VALUE = 4;
246 public static final int MPSOLVER_NOT_SOLVED_VALUE = 6;
255 public static final int MPSOLVER_MODEL_IS_VALID_VALUE = 97;
264 public static final int MPSOLVER_CANCELLED_BY_USER_VALUE = 98;
273 public static final int MPSOLVER_UNKNOWN_STATUS_VALUE = 99;
282 public static final int MPSOLVER_MODEL_INVALID_VALUE = 5;
291 public static final int MPSOLVER_MODEL_INVALID_SOLUTION_HINT_VALUE = 84;
310 public static final int MPSOLVER_SOLVER_TYPE_UNAVAILABLE_VALUE = 7;
321 public static final int MPSOLVER_INCOMPATIBLE_OPTIONS_VALUE = 113;
322
323
324 public final int getNumber() {
325 return value;
326 }
327
333 @java.lang.Deprecated
334 public static MPSolverResponseStatus valueOf(int value) {
335 return forNumber(value);
336 }
337
342 public static MPSolverResponseStatus forNumber(int value) {
343 switch (value) {
344 case 0: return MPSOLVER_OPTIMAL;
345 case 1: return MPSOLVER_FEASIBLE;
346 case 2: return MPSOLVER_INFEASIBLE;
347 case 3: return MPSOLVER_UNBOUNDED;
348 case 4: return MPSOLVER_ABNORMAL;
349 case 6: return MPSOLVER_NOT_SOLVED;
350 case 97: return MPSOLVER_MODEL_IS_VALID;
351 case 98: return MPSOLVER_CANCELLED_BY_USER;
352 case 99: return MPSOLVER_UNKNOWN_STATUS;
353 case 5: return MPSOLVER_MODEL_INVALID;
357 case 113: return MPSOLVER_INCOMPATIBLE_OPTIONS;
358 default: return null;
359 }
360 }
361
362 public static com.google.protobuf.Internal.EnumLiteMap<MPSolverResponseStatus>
364 return internalValueMap;
365 }
366 private static final com.google.protobuf.Internal.EnumLiteMap<
367 MPSolverResponseStatus> internalValueMap =
368 new com.google.protobuf.Internal.EnumLiteMap<MPSolverResponseStatus>() {
369 public MPSolverResponseStatus findValueByNumber(int number) {
370 return MPSolverResponseStatus.forNumber(number);
371 }
372 };
373
374 public final com.google.protobuf.Descriptors.EnumValueDescriptor
376 return getDescriptor().getValues().get(ordinal());
377 }
378 public final com.google.protobuf.Descriptors.EnumDescriptor
380 return getDescriptor();
381 }
382 public static final com.google.protobuf.Descriptors.EnumDescriptor
384 return com.google.ortools.linearsolver.LinearSolver.getDescriptor().getEnumTypes().get(0);
385 }
386
387 private static final MPSolverResponseStatus[] VALUES = values();
388
389 public static MPSolverResponseStatus valueOf(
390 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
391 if (desc.getType() != getDescriptor()) {
392 throw new java.lang.IllegalArgumentException(
393 "EnumValueDescriptor is not for this type.");
394 }
395 return VALUES[desc.getIndex()];
396 }
397
398 private final int value;
399
400 private MPSolverResponseStatus(int value) {
401 this.value = value;
402 }
403
404 // @@protoc_insertion_point(enum_scope:operations_research.MPSolverResponseStatus)
405}
406
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap< MPSolverResponseStatus > internalGetValueMap()
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
static MPSolverResponseStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)