Google OR-Tools v9.11
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// source: ortools/linear_solver/linear_solver.proto
3
4// Protobuf Java Version: 4.26.1
5package com.google.ortools.linearsolver;
6
23 implements com.google.protobuf.ProtocolMessageEnum {
167 ;
168
169 static {
170 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
171 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
172 /* major= */ 4,
173 /* minor= */ 26,
174 /* patch= */ 1,
175 /* suffix= */ "",
176 MPSolverResponseStatus.class.getName());
177 }
189 public static final int MPSOLVER_OPTIMAL_VALUE = 0;
205 public static final int MPSOLVER_FEASIBLE_VALUE = 1;
216 public static final int MPSOLVER_INFEASIBLE_VALUE = 2;
226 public static final int MPSOLVER_UNBOUNDED_VALUE = 3;
236 public static final int MPSOLVER_ABNORMAL_VALUE = 4;
245 public static final int MPSOLVER_NOT_SOLVED_VALUE = 6;
254 public static final int MPSOLVER_MODEL_IS_VALID_VALUE = 97;
263 public static final int MPSOLVER_CANCELLED_BY_USER_VALUE = 98;
272 public static final int MPSOLVER_UNKNOWN_STATUS_VALUE = 99;
281 public static final int MPSOLVER_MODEL_INVALID_VALUE = 5;
290 public static final int MPSOLVER_MODEL_INVALID_SOLUTION_HINT_VALUE = 84;
298 public static final int MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS_VALUE = 85;
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;
353 case 84: return MPSOLVER_MODEL_INVALID_SOLUTION_HINT;
354 case 85: return MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS;
355 case 7: return MPSOLVER_SOLVER_TYPE_UNAVAILABLE;
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 final 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
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
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)