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, setScheduled
public Circuit(IntVar[] x)
x
- the variables representing the successor array that is
x[i]
is the city visited after city ipublic void post()
Constraint
post
in interface Constraint
post
in class AbstractConstraint
Copyright © 2018 Laurent Michel, Pierre Schaus, Pascal Van Hentenryck. All rights reserved.