Enum CpSolverStatus
- All Implemented Interfaces:
- com.google.protobuf.Internal.EnumLite,- com.google.protobuf.ProtocolMessageEnum,- Serializable,- Comparable<CpSolverStatus>,- java.lang.constant.Constable
@Generated
public enum CpSolverStatus
extends Enum<CpSolverStatus>
implements com.google.protobuf.ProtocolMessageEnum
The status returned by a solver trying to solve a CpModelProto.Protobuf enum
operations_research.sat.CpSolverStatus- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionA feasible solution has been found.The problem has been proven infeasible.The given CpModelProto didn't pass the validation step.An optimal feasible solution has been found.The status of the model is still unknown.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intA feasible solution has been found.static final intThe problem has been proven infeasible.static final intThe given CpModelProto didn't pass the validation step.static final intAn optimal feasible solution has been found.static final intThe status of the model is still unknown.
- 
Method SummaryModifier and TypeMethodDescriptionstatic CpSolverStatusforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<CpSolverStatus> static CpSolverStatusvalueOf(int value) Deprecated.static CpSolverStatusvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static CpSolverStatusReturns 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.
- 
Enum Constant Details- 
UNKNOWNThe status of the model is still unknown. A search limit has been reached before any of the statuses below could be determined. UNKNOWN = 0;
- 
MODEL_INVALIDThe given CpModelProto didn't pass the validation step. You can get a detailed error by calling ValidateCpModel(model_proto). MODEL_INVALID = 1;
- 
FEASIBLEA 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;
- 
INFEASIBLEThe problem has been proven infeasible. INFEASIBLE = 3;
- 
OPTIMALAn 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;
- 
UNRECOGNIZED
 
- 
- 
Field Details- 
UNKNOWN_VALUEpublic static final int UNKNOWN_VALUEThe status of the model is still unknown. A search limit has been reached before any of the statuses below could be determined. UNKNOWN = 0;- See Also:
 
- 
MODEL_INVALID_VALUEpublic static final int MODEL_INVALID_VALUEThe given CpModelProto didn't pass the validation step. You can get a detailed error by calling ValidateCpModel(model_proto). MODEL_INVALID = 1;- See Also:
 
- 
FEASIBLE_VALUEpublic static final int FEASIBLE_VALUEA 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;- See Also:
 
- 
INFEASIBLE_VALUEpublic static final int INFEASIBLE_VALUEThe problem has been proven infeasible. INFEASIBLE = 3;- See Also:
 
- 
OPTIMAL_VALUEpublic static final int OPTIMAL_VALUEAn 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;- See Also:
 
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns 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:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getNumberpublic final int getNumber()- Specified by:
- getNumberin interface- com.google.protobuf.Internal.EnumLite
- Specified by:
- getNumberin interface- com.google.protobuf.ProtocolMessageEnum
 
- 
valueOfDeprecated.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:
- value- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
forNumber- Parameters:
- value- The numeric wire value of the corresponding enum entry.
- Returns:
- The enum associated with the given numeric wire value.
 
- 
internalGetValueMap
- 
getValueDescriptorpublic final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
- getValueDescriptorin interface- com.google.protobuf.ProtocolMessageEnum
 
- 
getDescriptorForTypepublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
- getDescriptorForTypein interface- com.google.protobuf.ProtocolMessageEnum
 
- 
getDescriptorpublic static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
- 
valueOfReturns 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:
- desc- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-