Package com.google.ortools.linearsolver
Enum MPSolver.ResultStatus
- java.lang.Object
-
- java.lang.Enum<MPSolver.ResultStatus>
-
- com.google.ortools.linearsolver.MPSolver.ResultStatus
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MPSolver.ResultStatus>
- Enclosing class:
- MPSolver
public static enum MPSolver.ResultStatus extends java.lang.Enum<MPSolver.ResultStatus>
The status of solving the problem. The straightforward translation to
homonymous enum values of MPSolverResponseStatus (see
./linear_solver.proto) is guaranteed by ./enum_consistency_test.cc, you may
rely on it.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABNORMALabnormal, i.e., error of some kind.FEASIBLEfeasible, or stopped by limit.INFEASIBLEproven infeasible.MODEL_INVALIDthe model is trivially invalid (NaN coefficients, etc).NOT_SOLVEDnot been solved yet.OPTIMALoptimal.UNBOUNDEDproven unbounded.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MPSolver.ResultStatusswigToEnum(int swigValue)intswigValue()static MPSolver.ResultStatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MPSolver.ResultStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPTIMAL
public static final MPSolver.ResultStatus OPTIMAL
optimal.
-
FEASIBLE
public static final MPSolver.ResultStatus FEASIBLE
feasible, or stopped by limit.
-
INFEASIBLE
public static final MPSolver.ResultStatus INFEASIBLE
proven infeasible.
-
UNBOUNDED
public static final MPSolver.ResultStatus UNBOUNDED
proven unbounded.
-
ABNORMAL
public static final MPSolver.ResultStatus ABNORMAL
abnormal, i.e., error of some kind.
-
MODEL_INVALID
public static final MPSolver.ResultStatus MODEL_INVALID
the model is trivially invalid (NaN coefficients, etc).
-
NOT_SOLVED
public static final MPSolver.ResultStatus NOT_SOLVED
not been solved yet.
-
-
Method Detail
-
values
public static MPSolver.ResultStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MPSolver.ResultStatus c : MPSolver.ResultStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MPSolver.ResultStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
swigValue
public final int swigValue()
-
swigToEnum
public static MPSolver.ResultStatus swigToEnum(int swigValue)
-
-