java.lang.Object
org.maxicp.cp.engine.core.AbstractCPConstraint
org.maxicp.cp.engine.constraints.SubCircuit
- All Implemented Interfaces:
CPConstraint,ConcreteConstraint<ConcreteCPModel>
Ensures that only one Hamiltonian circuit appears in the provided successor variables.
The nodes not belonging to the main circuit have themselves as successor.
- Author:
- pschaus
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.maxicp.cp.engine.core.AbstractCPConstraint
getSolver, isActive, isScheduled, priority, propagate, registerDelta, setActive, setScheduled, updateDeltas
-
Constructor Details
-
SubCircuit
Creates a SubCircuit Constraint. Nodes with x[i] == i are considered outside the active circuit.- Parameters:
x- the variables representing the successor array
-
-
Method Details
-
post
public void post()Description copied from interface:CPConstraintInitializes the constraint when it is posted to the solver.- Specified by:
postin interfaceCPConstraint- Overrides:
postin classAbstractCPConstraint
-
fixed
public void fixed(int u)
-