Reference

C++

Python

DotNET

Java Documentation

Java Reference

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 package com.google.ortools.linearsolver;
5 
21  implements com.google.protobuf.ProtocolMessageEnum {
143  ;
144 
155  public static final int MPSOLVER_OPTIMAL_VALUE = 0;
170  public static final int MPSOLVER_FEASIBLE_VALUE = 1;
181  public static final int MPSOLVER_INFEASIBLE_VALUE = 2;
191  public static final int MPSOLVER_UNBOUNDED_VALUE = 3;
201  public static final int MPSOLVER_ABNORMAL_VALUE = 4;
210  public static final int MPSOLVER_NOT_SOLVED_VALUE = 6;
219  public static final int MPSOLVER_MODEL_IS_VALID_VALUE = 97;
228  public static final int MPSOLVER_UNKNOWN_STATUS_VALUE = 99;
237  public static final int MPSOLVER_MODEL_INVALID_VALUE = 5;
246  public static final int MPSOLVER_MODEL_INVALID_SOLUTION_HINT_VALUE = 84;
254  public static final int MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS_VALUE = 85;
265  public static final int MPSOLVER_SOLVER_TYPE_UNAVAILABLE_VALUE = 7;
266 
267 
268  public final int getNumber() {
269  return value;
270  }
271 
275  @java.lang.Deprecated
276  public static MPSolverResponseStatus valueOf(int value) {
277  return forNumber(value);
278  }
279 
280  public static MPSolverResponseStatus forNumber(int value) {
281  switch (value) {
282  case 0: return MPSOLVER_OPTIMAL;
283  case 1: return MPSOLVER_FEASIBLE;
284  case 2: return MPSOLVER_INFEASIBLE;
285  case 3: return MPSOLVER_UNBOUNDED;
286  case 4: return MPSOLVER_ABNORMAL;
287  case 6: return MPSOLVER_NOT_SOLVED;
288  case 97: return MPSOLVER_MODEL_IS_VALID;
289  case 99: return MPSOLVER_UNKNOWN_STATUS;
290  case 5: return MPSOLVER_MODEL_INVALID;
291  case 84: return MPSOLVER_MODEL_INVALID_SOLUTION_HINT;
292  case 85: return MPSOLVER_MODEL_INVALID_SOLVER_PARAMETERS;
293  case 7: return MPSOLVER_SOLVER_TYPE_UNAVAILABLE;
294  default: return null;
295  }
296  }
297 
298  public static com.google.protobuf.Internal.EnumLiteMap<MPSolverResponseStatus>
300  return internalValueMap;
301  }
302  private static final com.google.protobuf.Internal.EnumLiteMap<
303  MPSolverResponseStatus> internalValueMap =
304  new com.google.protobuf.Internal.EnumLiteMap<MPSolverResponseStatus>() {
305  public MPSolverResponseStatus findValueByNumber(int number) {
306  return MPSolverResponseStatus.forNumber(number);
307  }
308  };
309 
310  public final com.google.protobuf.Descriptors.EnumValueDescriptor
312  return getDescriptor().getValues().get(ordinal());
313  }
314  public final com.google.protobuf.Descriptors.EnumDescriptor
316  return getDescriptor();
317  }
318  public static final com.google.protobuf.Descriptors.EnumDescriptor
320  return com.google.ortools.linearsolver.LinearSolver.getDescriptor().getEnumTypes().get(0);
321  }
322 
323  private static final MPSolverResponseStatus[] VALUES = values();
324 
326  com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
327  if (desc.getType() != getDescriptor()) {
328  throw new java.lang.IllegalArgumentException(
329  "EnumValueDescriptor is not for this type.");
330  }
331  return VALUES[desc.getIndex()];
332  }
333 
334  private final int value;
335 
336  private MPSolverResponseStatus(int value) {
337  this.value = value;
338  }
339 
340  // @@protoc_insertion_point(enum_scope:operations_research.MPSolverResponseStatus)
341 }
342 
.lang.Deprecated static MPSolverResponseStatus valueOf(int value)
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
static com.google.protobuf.Descriptors.FileDescriptor getDescriptor()
static MPSolverResponseStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
static com.google.protobuf.Internal.EnumLiteMap< MPSolverResponseStatus > internalGetValueMap()
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()