Google OR-Tools v9.9
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: 3.25.3
5package com.google.ortools.linearsolver;
6
23 implements com.google.protobuf.ProtocolMessageEnum {
167 ;
168
180 public static final int MPSOLVER_OPTIMAL_VALUE = 0;
196 public static final int MPSOLVER_FEASIBLE_VALUE = 1;
207 public static final int MPSOLVER_INFEASIBLE_VALUE = 2;
217 public static final int MPSOLVER_UNBOUNDED_VALUE = 3;
227 public static final int MPSOLVER_ABNORMAL_VALUE = 4;
236 public static final int MPSOLVER_NOT_SOLVED_VALUE = 6;
245 public static final int MPSOLVER_MODEL_IS_VALID_VALUE = 97;
254 public static final int MPSOLVER_CANCELLED_BY_USER_VALUE = 98;
263 public static final int MPSOLVER_UNKNOWN_STATUS_VALUE = 99;
272 public static final int MPSOLVER_MODEL_INVALID_VALUE = 5;
281 public static final int MPSOLVER_MODEL_INVALID_SOLUTION_HINT_VALUE = 84;
289 public static final int MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS_VALUE = 85;
300 public static final int MPSOLVER_SOLVER_TYPE_UNAVAILABLE_VALUE = 7;
311 public static final int MPSOLVER_INCOMPATIBLE_OPTIONS_VALUE = 113;
312
313
314 public final int getNumber() {
315 return value;
316 }
317
323 @java.lang.Deprecated
324 public static MPSolverResponseStatus valueOf(int value) {
325 return forNumber(value);
326 }
327
332 public static MPSolverResponseStatus forNumber(int value) {
333 switch (value) {
334 case 0: return MPSOLVER_OPTIMAL;
335 case 1: return MPSOLVER_FEASIBLE;
336 case 2: return MPSOLVER_INFEASIBLE;
337 case 3: return MPSOLVER_UNBOUNDED;
338 case 4: return MPSOLVER_ABNORMAL;
339 case 6: return MPSOLVER_NOT_SOLVED;
340 case 97: return MPSOLVER_MODEL_IS_VALID;
341 case 98: return MPSOLVER_CANCELLED_BY_USER;
342 case 99: return MPSOLVER_UNKNOWN_STATUS;
343 case 5: return MPSOLVER_MODEL_INVALID;
344 case 84: return MPSOLVER_MODEL_INVALID_SOLUTION_HINT;
345 case 85: return MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS;
346 case 7: return MPSOLVER_SOLVER_TYPE_UNAVAILABLE;
347 case 113: return MPSOLVER_INCOMPATIBLE_OPTIONS;
348 default: return null;
349 }
350 }
351
352 public static com.google.protobuf.Internal.EnumLiteMap<MPSolverResponseStatus>
354 return internalValueMap;
355 }
356 private static final com.google.protobuf.Internal.EnumLiteMap<
357 MPSolverResponseStatus> internalValueMap =
358 new com.google.protobuf.Internal.EnumLiteMap<MPSolverResponseStatus>() {
359 public MPSolverResponseStatus findValueByNumber(int number) {
360 return MPSolverResponseStatus.forNumber(number);
361 }
362 };
363
364 public final com.google.protobuf.Descriptors.EnumValueDescriptor
366 return getDescriptor().getValues().get(ordinal());
367 }
368 public final com.google.protobuf.Descriptors.EnumDescriptor
370 return getDescriptor();
371 }
372 public static final com.google.protobuf.Descriptors.EnumDescriptor
374 return com.google.ortools.linearsolver.LinearSolver.getDescriptor().getEnumTypes().get(0);
375 }
376
377 private static final MPSolverResponseStatus[] VALUES = values();
378
380 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
381 if (desc.getType() != getDescriptor()) {
382 throw new java.lang.IllegalArgumentException(
383 "EnumValueDescriptor is not for this type.");
384 }
385 return VALUES[desc.getIndex()];
386 }
387
388 private final int value;
389
390 private MPSolverResponseStatus(int value) {
391 this.value = value;
392 }
393
394 // @@protoc_insertion_point(enum_scope:operations_research.MPSolverResponseStatus)
395}
396
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)