public interface Solver
| Modifier and Type | Method and Description |
|---|---|
void |
fixPoint()
Computes the fix-point with all the scheduled constraints.
|
StateManager |
getStateManager()
Returns the state manager in charge of the global
state of the solver.
|
Objective |
maximize(IntVar x)
Creates a maximization objective on the given variable.
|
Objective |
minimize(IntVar x)
Creates a minimization objective on the given variable.
|
void |
onFixPoint(Procedure listener)
Adds a listener called whenever the fix-point.
|
void |
post(BoolVar b)
Forces the boolean variable to be true and then
computes the fix-point.
|
void |
post(Constraint c)
Posts the constraint, that is call
Constraint.post() and
computes the fix-point. |
void |
post(Constraint c,
boolean enforceFixPoint)
Posts the constraint that is call
Constraint.post()
and optionally computes the fix-point. |
void |
schedule(Constraint c)
Schedules the constraint to be propagated by the fix-point.
|
void post(Constraint c)
Constraint.post() and
computes the fix-point.
A InconsistencyException is thrown
if by posting the constraint it is proven that there is no solution.c - the constraint to be postedvoid schedule(Constraint c)
c - the constraint to be scheduledvoid post(Constraint c, boolean enforceFixPoint)
Constraint.post()
and optionally computes the fix-point.
A InconsistencyException is thrown
if by posting the constraint it is proven that there is no solution.c - the constraint to be postedenforceFixPoint - is one wants to compute the fix-point aftervoid fixPoint()
StateManager getStateManager()
void onFixPoint(Procedure listener)
listener - the listener that is called whenever the fix-point is startedObjective minimize(IntVar x)
x - the variable to minimizeDFSearch.optimize(Objective)Objective maximize(IntVar x)
x - the variable to maximizeDFSearch.optimize(Objective)void post(BoolVar b)
b - the variable that must be set to trueCopyright © 2018 Laurent Michel, Pierre Schaus, Pascal Van Hentenryck. All rights reserved.