public class Circuit extends AbstractConstraint
| Constructor and Description |
|---|
Circuit(IntVar[] x)
Creates an Hamiltonian Circuit Constraint
with a successor model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
post()
Initializes the constraint when it is posted to the solver.
|
getSolver, isActive, isScheduled, propagate, setActive, setScheduledpublic Circuit(IntVar[] x)
x - the variables representing the successor array that is
x[i] is the city visited after city ipublic void post()
Constraintpost in interface Constraintpost in class AbstractConstraintCopyright © 2018 Laurent Michel, Pierre Schaus, Pascal Van Hentenryck. All rights reserved.