public enum CpSolverStatus extends java.lang.Enum<CpSolverStatus> implements com.google.protobuf.ProtocolMessageEnum
The status returned by a solver trying to solve a CpModelProto.Protobuf enum
operations_research.sat.CpSolverStatus
Enum Constant and Description |
---|
FEASIBLE
A feasible solution has been found.
|
INFEASIBLE
The problem has been proven infeasible.
|
MODEL_INVALID
The given CpModelProto didn't pass the validation step.
|
OPTIMAL
An optimal feasible solution has been found.
|
UNKNOWN
The status of the model is still unknown.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
FEASIBLE_VALUE
A feasible solution has been found.
|
static int |
INFEASIBLE_VALUE
The problem has been proven infeasible.
|
static int |
MODEL_INVALID_VALUE
The given CpModelProto didn't pass the validation step.
|
static int |
OPTIMAL_VALUE
An optimal feasible solution has been found.
|
static int |
UNKNOWN_VALUE
The status of the model is still unknown.
|
Modifier and Type | Method and Description |
---|---|
static CpSolverStatus |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<CpSolverStatus> |
internalGetValueMap() |
static CpSolverStatus |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CpSolverStatus |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CpSolverStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CpSolverStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CpSolverStatus UNKNOWN
The status of the model is still unknown. A search limit has been reached before any of the statuses below could be determined.
UNKNOWN = 0;
public static final CpSolverStatus MODEL_INVALID
The given CpModelProto didn't pass the validation step. You can get a detailed error by calling ValidateCpModel(model_proto).
MODEL_INVALID = 1;
public static final CpSolverStatus FEASIBLE
A feasible solution has been found. But the search was stopped before we could prove optimality or before we enumerated all solutions of a feasibility problem (if asked).
FEASIBLE = 2;
public static final CpSolverStatus INFEASIBLE
The problem has been proven infeasible.
INFEASIBLE = 3;
public static final CpSolverStatus OPTIMAL
An optimal feasible solution has been found. More generally, this status represent a success. So we also return OPTIMAL if we find a solution for a pure feasibility problem or if a gap limit has been specified and we return a solution within this limit. In the case where we need to return all the feasible solution, this status will only be returned if we enumerated all of them; If we stopped before, we will return FEASIBLE.
OPTIMAL = 4;
public static final CpSolverStatus UNRECOGNIZED
public static final int UNKNOWN_VALUE
The status of the model is still unknown. A search limit has been reached before any of the statuses below could be determined.
UNKNOWN = 0;
public static final int MODEL_INVALID_VALUE
The given CpModelProto didn't pass the validation step. You can get a detailed error by calling ValidateCpModel(model_proto).
MODEL_INVALID = 1;
public static final int FEASIBLE_VALUE
A feasible solution has been found. But the search was stopped before we could prove optimality or before we enumerated all solutions of a feasibility problem (if asked).
FEASIBLE = 2;
public static final int INFEASIBLE_VALUE
The problem has been proven infeasible.
INFEASIBLE = 3;
public static final int OPTIMAL_VALUE
An optimal feasible solution has been found. More generally, this status represent a success. So we also return OPTIMAL if we find a solution for a pure feasibility problem or if a gap limit has been specified and we return a solution within this limit. In the case where we need to return all the feasible solution, this status will only be returned if we enumerated all of them; If we stopped before, we will return FEASIBLE.
OPTIMAL = 4;
public static CpSolverStatus[] values()
for (CpSolverStatus c : CpSolverStatus.values()) System.out.println(c);
public static CpSolverStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static CpSolverStatus valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static CpSolverStatus forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<CpSolverStatus> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static CpSolverStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025. All rights reserved.