C++ Reference: class PbConstraints
Note: This documentation is automatically generated.
Class responsible for managing a set of pseudo-Boolean constraints and their propagation.
Method | |
---|---|
AddConstraint | Return type: Arguments: Adds a constraint in canonical form to the set of managed constraints. Note that this detects constraints with exactly the same terms. In this case, the constraint rhs is updated if the new one is lower or nothing is done otherwise. There are some preconditions, and the function will return false if they are not met. The constraint can be added when the trail is not empty, however given the current propagated assignment: - The constraint cannot be conflicting. - The constraint cannot have propagated at an earlier decision level. |
AddLearnedConstraint | Return type: Arguments: Same as AddConstraint(), but also marks the added constraint as learned so that it can be deleted during the constraint cleanup phase. |
BumpActivity | Return type: Arguments: Activity update functions. TODO(user): Remove duplication with other activity update functions. |
ClearConflictingConstraint | Return type: ConflictingConstraint() returns the last PB constraint that caused a conflict. Calling ClearConflictingConstraint() reset this to nullptr. TODO(user): This is a hack to get the PB conflict, because the rest of the solver API assume only clause conflict. Find a cleaner way? |
ConflictingConstraint | Return type: |
DeleteConstraint | Return type: Arguments: Only used for testing. |
IsEmpty | Return type: |
num_constraint_lookups | Return type: Some statistics. |
num_inspected_constraint_literals | Return type: |
num_threshold_updates | Return type: |
NumberOfConstraints | Return type: Returns the number of constraints managed by this class. |
PbConstraints | Return type: Arguments: |
~PbConstraints | |
Propagate | Return type: Arguments: |
Reason | Return type: Arguments: |
ReasonPbConstraint | Return type: Arguments: Returns the underlying UpperBoundedLinearConstraint responsible for assigning the literal at given trail index. |
RescaleActivities | Return type: Arguments: |
Resize | Return type: Arguments: Changes the number of variables. |
Untrail | Return type: Arguments: |
UpdateActivityIncrement | Return type: |