Class AbstractImprovementOptimizer
java.lang.Object
org.clafer.compiler.AbstractImprovementOptimizer
- All Implemented Interfaces:
ClaferOptimizer, ClaferSearch, InstanceIterator, OptimalInstanceIterator
- Direct Known Subclasses:
ClaferMultiObjectiveOptimizerGIA, ClaferMultiObjectiveOptimizerOIA, ClaferSingleObjectiveOptimizer
- Author:
- jimmy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final boolean[]protected final org.chocosolver.solver.variables.IntVar[]protected final ClaferSolutionMapprotected final org.chocosolver.solver.Solver -
Constructor Summary
ConstructorsConstructorDescriptionAbstractImprovementOptimizer(org.chocosolver.solver.Solver solver, ClaferSolutionMap solutionMap, boolean[] maximizes, org.chocosolver.solver.variables.IntVar[] scores) -
Method Summary
Modifier and TypeMethodDescriptionorg.chocosolver.solver.SolverReturns the internal Choco solver.boolean[]org.chocosolver.solver.variables.IntVar[]abstract org.chocosolver.solver.Solutionsolution()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClaferSearch
find, limitTimeMethods inherited from interface InstanceIterator
allInstances, instance, instanceCountMethods inherited from interface OptimalInstanceIterator
optimalValues
-
Field Details
-
solver
-
solutionMap
-
maximizes
-
scores
-
-
Constructor Details
-
AbstractImprovementOptimizer
public AbstractImprovementOptimizer(org.chocosolver.solver.Solver solver, ClaferSolutionMap solutionMap, boolean[] maximizes, org.chocosolver.solver.variables.IntVar[] scores)
-
-
Method Details
-
getInternalSolver
Description copied from interface:ClaferSearchReturns the internal Choco solver. For debugging purposes only.- Specified by:
getInternalSolverin interfaceClaferSearch- Returns:
- the internal Choco solver
-
getSolutionMap
-
getMaximizes
-
getScores
-
solution
-