Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <pb_constraint.h>
Public Member Functions | |
VariableWithSameReasonIdentifier (const Trail &trail) | |
VariableWithSameReasonIdentifier (const VariableWithSameReasonIdentifier &)=delete | |
This type is neither copyable nor movable. | |
VariableWithSameReasonIdentifier & | operator= (const VariableWithSameReasonIdentifier &)=delete |
void | Resize (int num_variables) |
void | Clear () |
Clears the cache. Call this before each conflict analysis. | |
BooleanVariable | FirstVariableWithSameReason (BooleanVariable var) |
Boolean linear constraints can propagate a lot of literals at the same time. As a result, all these literals will have exactly the same reason. It is important to take advantage of that during the conflict computation/minimization. On some problem, this can have a huge impact.
Definition at line 704 of file pb_constraint.h.
|
inlineexplicit |
Definition at line 706 of file pb_constraint.h.
|
delete |
This type is neither copyable nor movable.
|
inline |
Clears the cache. Call this before each conflict analysis.
Definition at line 721 of file pb_constraint.h.
|
inline |
Returns the first variable with exactly the same reason as 'var' on which this function was called since the last Clear(). Note that if no variable had the same reason, then var is returned.
Definition at line 726 of file pb_constraint.h.
|
delete |
|
inline |
Definition at line 715 of file pb_constraint.h.