Java Reference
Java Reference
SolutionCollector.java
Go to the documentation of this file.
43 this(mainJNI.new_SolutionCollector__SWIG_0(Solver.getCPtr(solver), solver, Assignment.getCPtr(assignment), assignment), true);
160 return mainJNI.SolutionCollector_durationValue(swigCPtr, this, n, IntervalVar.getCPtr(var), var);
167 return mainJNI.SolutionCollector_performedValue(swigCPtr, this, n, IntervalVar.getCPtr(var), var);
174 return mainJNI.SolutionCollector_forwardSequence(swigCPtr, this, n, SequenceVar.getCPtr(var), var);
181 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:173
long startValue(int n, IntervalVar var)
This is a shortcut to get the StartValue of 'var' in the nth solution.
Definition: SolutionCollector.java:145
long objectiveValue(int n)
Returns the objective value of the nth solution.
Definition: SolutionCollector.java:131
long wallTime(int n)
Returns the wall time in ms for the nth solution.
Definition: SolutionCollector.java:110
long branches(int n)
Returns the number of branches when the nth solution was found.
Definition: SolutionCollector.java:117
void addObjective(IntVar objective)
Definition: SolutionCollector.java:81
long failures(int n)
Returns the number of failures encountered at the time of the nth solution.
Definition: SolutionCollector.java:124
Solver solver()
Definition: SearchMonitor.java:199
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:159
A sequence variable is a variable whose domain is a set of possible orderings of the interval variabl...
Definition: SequenceVar.java:14
int solutionCount()
Returns how many solutions were stored during the search.
Definition: SolutionCollector.java:95
void add(IntervalVar[] vars)
Definition: SolutionCollector.java:69
void add(IntervalVar var)
Definition: SolutionCollector.java:65
long value(int n, IntVar var)
This is a shortcut to get the Value of 'var' in the nth solution.
Definition: SolutionCollector.java:138
SolutionCollector(long cPtr, boolean cMemoryOwn)
Definition: SolutionCollector.java:17
long endValue(int n, IntervalVar var)
This is a shortcut to get the EndValue of 'var' in the nth solution.
Definition: SolutionCollector.java:152
An Assignment is a variable -> domains mapping, used to report solutions to the user.
Definition: Assignment.java:14
long performedValue(int n, IntervalVar var)
This is a shortcut to get the PerformedValue of 'var' in the nth solution.
Definition: SolutionCollector.java:166
void add(SequenceVar var)
Definition: SolutionCollector.java:73
This class is the root class of all solution collectors.
Definition: SolutionCollector.java:14
A search monitor is a simple set of callbacks to monitor all search events.
Definition: SearchMonitor.java:14
SolutionCollector(Solver solver)
Definition: SolutionCollector.java:46
SolutionCollector(Solver solver, Assignment assignment)
Definition: SolutionCollector.java:42
int[] backwardSequence(int n, SequenceVar var)
This is a shortcut to get the BackwardSequence of 'var' in the nth solution.
Definition: SolutionCollector.java:180
String toString()
Definition: SolutionCollector.java:50
void add(SequenceVar[] vars)
Definition: SolutionCollector.java:77
Interval variables are often used in scheduling.
void add(IntVar[] vars)
Definition: SolutionCollector.java:61
Solver Class A solver represents the main computation engine.
Definition: Solver.java:57
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:187