Google OR-Tools v9.14
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.31.1
5
6package com.google.ortools.linearsolver;
7
23@com.google.protobuf.Generated
24public enum MPSolverResponseStatus
25 implements com.google.protobuf.ProtocolMessageEnum {
169 ;
170
171 static {
172 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
173 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
174 /* major= */ 4,
175 /* minor= */ 31,
176 /* patch= */ 1,
177 /* suffix= */ "",
178 MPSolverResponseStatus.class.getName());
179 }
180
191 public static final int MPSOLVER_OPTIMAL_VALUE = 0;
207 public static final int MPSOLVER_FEASIBLE_VALUE = 1;
218 public static final int MPSOLVER_INFEASIBLE_VALUE = 2;
228 public static final int MPSOLVER_UNBOUNDED_VALUE = 3;
238 public static final int MPSOLVER_ABNORMAL_VALUE = 4;
247 public static final int MPSOLVER_NOT_SOLVED_VALUE = 6;
256 public static final int MPSOLVER_MODEL_IS_VALID_VALUE = 97;
265 public static final int MPSOLVER_CANCELLED_BY_USER_VALUE = 98;
274 public static final int MPSOLVER_UNKNOWN_STATUS_VALUE = 99;
283 public static final int MPSOLVER_MODEL_INVALID_VALUE = 5;
292 public static final int MPSOLVER_MODEL_INVALID_SOLUTION_HINT_VALUE = 84;
311 public static final int MPSOLVER_SOLVER_TYPE_UNAVAILABLE_VALUE = 7;
322 public static final int MPSOLVER_INCOMPATIBLE_OPTIONS_VALUE = 113;
323
324
325 public final int getNumber() {
326 return value;
327 }
328
334 @java.lang.Deprecated
335 public static MPSolverResponseStatus valueOf(int value) {
336 return forNumber(value);
337 }
338
343 public static MPSolverResponseStatus forNumber(int value) {
344 switch (value) {
345 case 0: return MPSOLVER_OPTIMAL;
346 case 1: return MPSOLVER_FEASIBLE;
347 case 2: return MPSOLVER_INFEASIBLE;
348 case 3: return MPSOLVER_UNBOUNDED;
349 case 4: return MPSOLVER_ABNORMAL;
350 case 6: return MPSOLVER_NOT_SOLVED;
351 case 97: return MPSOLVER_MODEL_IS_VALID;
352 case 98: return MPSOLVER_CANCELLED_BY_USER;
353 case 99: return MPSOLVER_UNKNOWN_STATUS;
354 case 5: return MPSOLVER_MODEL_INVALID;
358 case 113: return MPSOLVER_INCOMPATIBLE_OPTIONS;
359 default: return null;
360 }
361 }
362
363 public static com.google.protobuf.Internal.EnumLiteMap<MPSolverResponseStatus>
365 return internalValueMap;
366 }
367 private static final com.google.protobuf.Internal.EnumLiteMap<
368 MPSolverResponseStatus> internalValueMap =
369 new com.google.protobuf.Internal.EnumLiteMap<MPSolverResponseStatus>() {
370 public MPSolverResponseStatus findValueByNumber(int number) {
371 return MPSolverResponseStatus.forNumber(number);
372 }
373 };
374
375 public final com.google.protobuf.Descriptors.EnumValueDescriptor
377 return getDescriptor().getValues().get(ordinal());
378 }
379 public final com.google.protobuf.Descriptors.EnumDescriptor
381 return getDescriptor();
382 }
383 public static com.google.protobuf.Descriptors.EnumDescriptor
385 return com.google.ortools.linearsolver.LinearSolver.getDescriptor().getEnumTypes().get(0);
386 }
387
388 private static final MPSolverResponseStatus[] VALUES = values();
389
390 public static MPSolverResponseStatus valueOf(
391 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
392 if (desc.getType() != getDescriptor()) {
393 throw new java.lang.IllegalArgumentException(
394 "EnumValueDescriptor is not for this type.");
395 }
396 return VALUES[desc.getIndex()];
397 }
398
399 private final int value;
400
401 private MPSolverResponseStatus(int value) {
402 this.value = value;
403 }
404
405 // @@protoc_insertion_point(enum_scope:operations_research.MPSolverResponseStatus)
406}
407
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()