Java Reference
Java Reference
SolutionCollector.java
Go to the documentation of this file.
45 this(mainJNI.new_SolutionCollector__SWIG_0(Solver.getCPtr(solver), solver, Assignment.getCPtr(assignment), assignment), true);
163 return mainJNI.SolutionCollector_durationValue(swigCPtr, this, n, IntervalVar.getCPtr(var), var);
170 return mainJNI.SolutionCollector_performedValue(swigCPtr, this, n, IntervalVar.getCPtr(var), var);
179 return mainJNI.SolutionCollector_forwardSequence(swigCPtr, this, n, SequenceVar.getCPtr(var), var);
188 return mainJNI.SolutionCollector_backwardSequence(swigCPtr, this, n, SequenceVar.getCPtr(var), var);
int[] forwardSequence(int n, SequenceVar var)
This is a shortcut to get the ForwardSequence of 'var' in the nth solution.
Definition: SolutionCollector.java:178
long startValue(int n, IntervalVar var)
This is a shortcut to get the StartValue of 'var' in the nth solution.
Definition: SolutionCollector.java:148
long objectiveValue(int n)
Returns the objective value of the nth solution.
Definition: SolutionCollector.java:134
long wallTime(int n)
Returns the wall time in ms for the nth solution.
Definition: SolutionCollector.java:112
long branches(int n)
Returns the number of branches when the nth solution was found.
Definition: SolutionCollector.java:119
void addObjective(IntVar objective)
Definition: SolutionCollector.java:83
long failures(int n)
Returns the number of failures encountered at the time of the nth solution.
Definition: SolutionCollector.java:127
Solver solver()
Definition: SearchMonitor.java:209
The class IntVar is a subset of IntExpr.
long durationValue(int n, IntervalVar var)
This is a shortcut to get the DurationValue of 'var' in the nth solution.
Definition: SolutionCollector.java:162
A sequence variable is a variable whose domain is a set of possible orderings of the interval variab...
Definition: SequenceVar.java:19
int solutionCount()
Returns how many solutions were stored during the search.
Definition: SolutionCollector.java:97
void add(IntervalVar[] vars)
Definition: SolutionCollector.java:71
void add(IntervalVar var)
Definition: SolutionCollector.java:67
long value(int n, IntVar var)
This is a shortcut to get the Value of 'var' in the nth solution.
Definition: SolutionCollector.java:141
SolutionCollector(long cPtr, boolean cMemoryOwn)
Definition: SolutionCollector.java:19
long endValue(int n, IntervalVar var)
This is a shortcut to get the EndValue of 'var' in the nth solution.
Definition: SolutionCollector.java:155
An Assignment is a variable -> domains mapping, used to report solutions to the user.
Definition: Assignment.java:15
long performedValue(int n, IntervalVar var)
This is a shortcut to get the PerformedValue of 'var' in the nth solution.
Definition: SolutionCollector.java:169
void add(SequenceVar var)
Definition: SolutionCollector.java:75
This class is the root class of all solution collectors.
Definition: SolutionCollector.java:16
A search monitor is a simple set of callbacks to monitor all search events.
Definition: SearchMonitor.java:14
SolutionCollector(Solver solver)
Definition: SolutionCollector.java:48
SolutionCollector(Solver solver, Assignment assignment)
Definition: SolutionCollector.java:44
int[] backwardSequence(int n, SequenceVar var)
This is a shortcut to get the BackwardSequence of 'var' in the nth solution.
Definition: SolutionCollector.java:187
String toString()
Definition: SolutionCollector.java:52
void add(SequenceVar[] vars)
Definition: SolutionCollector.java:79
Interval variables are often used in scheduling.
void add(IntVar[] vars)
Definition: SolutionCollector.java:63
Solver Class A solver represents the main computation engine.
Definition: Solver.java:73
int[] unperformed(int n, SequenceVar var)
This is a shortcut to get the list of unperformed of 'var' in the nth solution.
Definition: SolutionCollector.java:195