java.lang.Object
org.ojalgo.optimisation.IntermediateSolver
- All Implemented Interfaces:
Optimisation,Optimisation.Solver
- Direct Known Subclasses:
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.- Author:
- apete
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.optimisation.Optimisation
Optimisation.Constraint, Optimisation.ConstraintType, Optimisation.Integration<M extends Optimisation.Model,S extends Optimisation.Solver>, Optimisation.Model, Optimisation.Objective, Optimisation.Options, Optimisation.ProblemStructure, Optimisation.Result, Optimisation.Sense, Optimisation.Solver, Optimisation.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Cleanup when a solver instance is no longer needed.protected intgetIndexInSolver(int globalModelIndex) 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ojalgo.optimisation.Optimisation.Solver
solve
-
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()
-