java.lang.Object
org.maxicp.cp.engine.core.MaxiCP
- All Implemented Interfaces:
CPSolver,StateManaged
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfixPoint()Computes the fix-point with all the scheduled constraints.Gives the ModelProxy associated with this CPSolver, if anyReturns the state manager in charge of the global state of the solver.Creates a maximization objective on the given variable.Creates a minimization objective on the given variable.voidonFixPoint(Runnable listener) Adds a listener called whenever the fix-point.voidForces the boolean variable to be true and then computes the fix-point.voidpost(CPConstraint c) Posts the constraint, that is callCPConstraint.post()and computes the fix-point.voidpost(CPConstraint c, boolean enforceFixPoint) Posts the constraint that is callCPConstraint.post()and optionally computes the fix-point.voidSchedules the constraint to be propagated by the fix-point.toString()
-
Constructor Details
-
MaxiCP
-
MaxiCP
-
-
Method Details
-
getStateManager
Description copied from interface:StateManagedReturns the state manager in charge of the global state of the solver.- Specified by:
getStateManagerin interfaceStateManaged- Returns:
- the state manager
-
schedule
Description copied from interface:CPSolverSchedules the constraint to be propagated by the fix-point. -
onFixPoint
Description copied from interface:CPSolverAdds a listener called whenever the fix-point.- Specified by:
onFixPointin interfaceCPSolver- Parameters:
listener- the listener that is called whenever the fix-point is started
-
fixPoint
public void fixPoint()Description copied from interface:CPSolverComputes the fix-point with all the scheduled constraints. -
minimize
Description copied from interface:CPSolverCreates a minimization objective on the given variable. -
maximize
Description copied from interface:CPSolverCreates a maximization objective on the given variable. -
post
Description copied from interface:CPSolverPosts the constraint, that is callCPConstraint.post()and computes the fix-point. AInconsistencyExceptionis thrown if by posting the constraint it is proven that there is no solution. -
post
Description copied from interface:CPSolverPosts the constraint that is callCPConstraint.post()and optionally computes the fix-point. AInconsistencyExceptionis thrown if by posting the constraint it is proven that there is no solution. -
post
Description copied from interface:CPSolverForces the boolean variable to be true and then computes the fix-point. -
getModelProxy
Description copied from interface:CPSolverGives the ModelProxy associated with this CPSolver, if any- Specified by:
getModelProxyin interfaceCPSolver
-
toString
-