Google OR-Tools v9.15
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.33.1
5
6package com.google.ortools.linearsolver;
7
23@com.google.protobuf.Generated
24public enum MPSolverResponseStatus
25 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= */ 33,
175 /* patch= */ 1,
176 /* suffix= */ "",
177 "MPSolverResponseStatus");
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;
309 public static final int MPSOLVER_SOLVER_TYPE_UNAVAILABLE_VALUE = 7;
320 public static final int MPSOLVER_INCOMPATIBLE_OPTIONS_VALUE = 113;
321
322
323 public final int getNumber() {
324 return value;
325 }
326
332 @java.lang.Deprecated
333 public static MPSolverResponseStatus valueOf(int value) {
334 return forNumber(value);
335 }
336
341 public static MPSolverResponseStatus forNumber(int value) {
342 switch (value) {
343 case 0: return MPSOLVER_OPTIMAL;
344 case 1: return MPSOLVER_FEASIBLE;
345 case 2: return MPSOLVER_INFEASIBLE;
346 case 3: return MPSOLVER_UNBOUNDED;
347 case 4: return MPSOLVER_ABNORMAL;
348 case 6: return MPSOLVER_NOT_SOLVED;
349 case 97: return MPSOLVER_MODEL_IS_VALID;
350 case 98: return MPSOLVER_CANCELLED_BY_USER;
351 case 99: return MPSOLVER_UNKNOWN_STATUS;
352 case 5: return MPSOLVER_MODEL_INVALID;
356 case 113: return MPSOLVER_INCOMPATIBLE_OPTIONS;
357 default: return null;
358 }
359 }
360
361 public static com.google.protobuf.Internal.EnumLiteMap<MPSolverResponseStatus>
363 return internalValueMap;
364 }
365 private static final com.google.protobuf.Internal.EnumLiteMap<
366 MPSolverResponseStatus> internalValueMap =
367 new com.google.protobuf.Internal.EnumLiteMap<MPSolverResponseStatus>() {
368 public MPSolverResponseStatus findValueByNumber(int number) {
369 return MPSolverResponseStatus.forNumber(number);
370 }
371 };
372
373 public final com.google.protobuf.Descriptors.EnumValueDescriptor
375 return getDescriptor().getValues().get(ordinal());
376 }
377 public final com.google.protobuf.Descriptors.EnumDescriptor
379 return getDescriptor();
380 }
381 public static com.google.protobuf.Descriptors.EnumDescriptor
383 return com.google.ortools.linearsolver.LinearSolver.getDescriptor().getEnumTypes().get(0);
384 }
385
386 private static final MPSolverResponseStatus[] VALUES = values();
387
388 public static MPSolverResponseStatus valueOf(
389 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
390 if (desc.getType() != getDescriptor()) {
391 throw new java.lang.IllegalArgumentException(
392 "EnumValueDescriptor is not for this type.");
393 }
394 return VALUES[desc.getIndex()];
395 }
396
397 private final int value;
398
399 private MPSolverResponseStatus(int value) {
400 this.value = value;
401 }
402
403 // @@protoc_insertion_point(enum_scope:operations_research.MPSolverResponseStatus)
404}
405
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)
static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()