Class EquivalentParetoSolver
java.lang.Object
org.clafer.compiler.EquivalentParetoSolver
- All Implemented Interfaces:
ClaferOptimizer, ClaferSearch, InstanceIterator, OptimalInstanceIterator
Takes an improvement-style optimizer that only returns one solution per
Pareto point and extends it to find all solutions per Pareto point.
- Author:
- jimmy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfind()Find the next instance.org.chocosolver.solver.SolverReturns the internal Choco solver.instance()Return the instance from the lastInstanceIterator.find()operation, if successful.intReturn the number of instances found so far.int[]Returns the optimal values.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClaferSearch
limitTimeMethods inherited from interface InstanceIterator
allInstances
-
Constructor Details
-
EquivalentParetoSolver
-
-
Method Details
-
find
Description copied from interface:ClaferSearchFind the next instance.- Specified by:
findin interfaceClaferSearch- Specified by:
findin interfaceInstanceIterator- Returns:
trueif and only if another solution is found,falseotherwise
-
instance
Description copied from interface:InstanceIteratorReturn the instance from the lastInstanceIterator.find()operation, if successful.- Specified by:
instancein interfaceInstanceIterator- Returns:
- the instance
-
optimalValues
Description copied from interface:OptimalInstanceIteratorReturns the optimal values. The order of the values corresponds to the order of the objectives.- Specified by:
optimalValuesin interfaceOptimalInstanceIterator- Returns:
- the optimal value
-
instanceCount
Description copied from interface:InstanceIteratorReturn the number of instances found so far.- Specified by:
instanceCountin interfaceInstanceIterator- Returns:
- the number of instances found so far
-
getInternalSolver
Description copied from interface:ClaferSearchReturns the internal Choco solver. For debugging purposes only.- Specified by:
getInternalSolverin interfaceClaferSearch- Returns:
- the internal Choco solver
-