C++ Reference: class CpModelView
Note: This documentation is automatically generated.
This class allows to query information about the current bounds of the loaded cp_model.proto variables during the search. It is a "view" of the current solver state using the indices of the proto.TODO(user): For now it uses proto indices of the loaded model. We will need to add a mapping to use proto indices of the non-presolved model to allow for a client custom search with presolve. The main API shouldn't change though and the change will be transparent.
Method | |
---|---|
CpModelView | Return type: Arguments: |
GreaterOrEqual | Return type: Arguments: Helpers to generate a decision. |
IsCurrentlyFree | Return type: Arguments: If under a given partial assignment, the value of a variable has no impact, this might returns true, and there is no point trying to branch on this variable. This might for example be the case for the start of an unperformed interval which will not impact the rest of the problem in any way. Note that it is still possible to branch on ignored variable, this will just not change anything. |
IsFixed | Return type: Arguments: Getters about the current domain of the given variable. |
LowerOrEqual | Return type: Arguments: |
Max | Return type: Arguments: |
MedianValue | Return type: Arguments: |
Min | Return type: Arguments: |
NumVariables | Return type: The valid indices for the calls below are in [0, num_variables). |