public class NogoodFromSolutions extends Object implements IMonitorSolution
This can be used to remove similar/symmetric solutions
Constructor and Description |
---|
NogoodFromSolutions(IntVar[] vars)
Avoid exploring same solutions (useful with restart on solution)
Beware :
- Must be posted as a constraint AND plugged as a monitor as well
- Cannot be reified
- Only works for integer variables
|
Modifier and Type | Method and Description |
---|---|
void |
onSolution() |
public NogoodFromSolutions(IntVar[] vars)
This can be used to remove similar/symmetric solutions
vars
- all decision variables which define a solution (can be a subset of variables)public void onSolution()
onSolution
in interface IMonitorSolution
Copyright © 2018. All rights reserved.