Class ClaferMultiObjectiveOptimizerOIA
java.lang.Object
org.clafer.compiler.AbstractImprovementOptimizer
org.clafer.compiler.ClaferMultiObjectiveOptimizerOIA
- All Implemented Interfaces:
ClaferOptimizer, ClaferSearch, InstanceIterator, OptimalInstanceIterator
- Author:
- jimmy
-
Field Summary
Fields inherited from class AbstractImprovementOptimizer
maximizes, scores, solutionMap, solver -
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.org.chocosolver.solver.Solutionsolution()Methods inherited from class AbstractImprovementOptimizer
getMaximizes, getScores, getSolutionMapMethods 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
-
Method Details
-
find
Description copied from interface:ClaferSearchFind the next instance.- Returns:
trueif and only if another solution is found,falseotherwise- Throws:
ReachedLimitException- if resource limit reached
-
instance
Description copied from interface:InstanceIteratorReturn the instance from the lastInstanceIterator.find()operation, if successful.- Returns:
- the instance
-
solution
- Specified by:
solutionin classAbstractImprovementOptimizer
-
optimalValues
Description copied from interface:OptimalInstanceIteratorReturns the optimal values. The order of the values corresponds to the order of the objectives.- Returns:
- the optimal value
-
instanceCount
Description copied from interface:InstanceIteratorReturn the number of instances found so far.- 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- Overrides:
getInternalSolverin classAbstractImprovementOptimizer- Returns:
- the internal Choco solver
-