Class IntermediateSolver
java.lang.Object
org.ojalgo.optimisation.IntermediateSolver
- All Implemented Interfaces:
Optimisation, Optimisation.Solver
- Direct Known Subclasses:
ExpressionsBasedModel.DefaultIntermediate, NodeSolver
A
Optimisation.Solver implementation that wraps an ExpressionsBasedModel. Intended to be
used when implementing solvers that iteratively modify a model instance and delegate to other solvers. The
IntegerSolver makes use of this.-
Nested Class Summary
Nested classes/interfaces inherited from interface Optimisation
Optimisation.Constraint, Optimisation.ConstraintType, Optimisation.Integration<M,S>, Optimisation.Model, Optimisation.Objective, Optimisation.Options, Optimisation.ProblemStructure, Optimisation.Result, Optimisation.Sense, Optimisation.Solver, Optimisation.State -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate ExpressionsBasedModel.Integration<?> private final ExpressionsBasedModelprivate Optimisation.Resultprivate Optimisation.Solver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Cleanup when a solver instance is no longer needed.protected intgetIndexInSolver(int globalModelIndex) (package private) ExpressionsBasedModel.Integration<?> protected ExpressionsBasedModelgetModel()protected Optimisation.Resultprotected Optimisation.SolvergetVariable(int globalModelIndex) protected booleanisSolved()voidreset()Force re-generation of cached/transient datasolve(Optimisation.Result candidate) toString()voidbooleanvalidate(ExpressionsBasedModel model) Using the solver'sExpressionsBasedModel.Validatorinstance, if set.booleanUsing the solver'sExpressionsBasedModel.Validatorinstance, if set.booleanvalidate(Access1D<BigDecimal> solution, BasicLogger appender) Always performs validation directly usingExpressionsBasedModel.validate(Access1D, BasicLogger).Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Optimisation.Solver
solve
-
Field Details
-
myInPlaceUpdatesOK
private boolean myInPlaceUpdatesOK -
myIntegration
-
myModel
-
myResult
-
mySolver
-
-
Constructor Details
-
IntermediateSolver
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:Optimisation.SolverCleanup when a solver instance is no longer needed.- Specified by:
disposein interfaceOptimisation.Solver
-
getVariable
-
reset
public void reset()Force re-generation of cached/transient data -
solve
- Specified by:
solvein interfaceOptimisation.Solver
-
toString
-
update
-
validate
Using the solver'sExpressionsBasedModel.Validatorinstance, if set. Otherwise no validation performed. -
validate
Always performs validation directly usingExpressionsBasedModel.validate(Access1D, BasicLogger). -
validate
Using the solver'sExpressionsBasedModel.Validatorinstance, if set. Otherwise no validation performed. -
getIndexInSolver
protected int getIndexInSolver(int globalModelIndex) -
getModel
-
getResult
-
getSolver
-
isSolved
protected boolean isSolved() -
getIntegration
ExpressionsBasedModel.Integration<?> getIntegration()
-