java.lang.Object
org.ojalgo.optimisation.ExpressionsBasedModel.Integration<SimplexTableauSolver>
org.ojalgo.optimisation.linear.LinearSolver.OldIntegration
- All Implemented Interfaces:
Optimisation,Optimisation.Integration<ExpressionsBasedModel,SimplexTableauSolver>
- Enclosing class:
LinearSolver
static final class LinearSolver.OldIntegration
extends ExpressionsBasedModel.Integration<SimplexTableauSolver>
-
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 TypeMethodDescriptionbuild(ExpressionsBasedModel model) An integration must be able to instantiate a solver that can handle (any) model instance.protected intgetIndexInSolver(ExpressionsBasedModel model, Variable variable) booleanisCapable(ExpressionsBasedModel model) toModelState(Optimisation.Result solverState, ExpressionsBasedModel model) Convert solver state to model state.private static ArrayR064toModelVariableValues(Access1D<?> solverVariableValues, ExpressionsBasedModel model, ArrayR064 modelVariableValues) toSolverState(Optimisation.Result modelState, ExpressionsBasedModel model) Convert model state to solver state.Methods inherited from class org.ojalgo.optimisation.ExpressionsBasedModel.Integration
extractSolverState, isSwitch, newValidator, setSwitch, withCapabilityPredicate, withOptionsModifier
-
Constructor Details
-
OldIntegration
OldIntegration()
-
-
Method Details
-
toModelVariableValues
private static ArrayR064 toModelVariableValues(Access1D<?> solverVariableValues, ExpressionsBasedModel model, ArrayR064 modelVariableValues) -
build
Description copied from interface:Optimisation.IntegrationAn integration must be able to instantiate a solver that can handle (any) model instance. -
isCapable
- Returns:
- true if this solver (integration) can handle the input model
-
toModelState
public Optimisation.Result toModelState(Optimisation.Result solverState, ExpressionsBasedModel model) Description copied from interface:Optimisation.IntegrationConvert solver state to model state. Transforming the solution (set of variable values) is the main concern. Adjusting the objective function value (if needed) is best handled elsewhere, and is not required here.The required behaviour here depends on how
Optimisation.Integration.build(Optimisation.Model)is implemented, and is the reverse mapping ofOptimisation.Integration.toSolverState(Optimisation.Result, Optimisation.Model).- Specified by:
toModelStatein interfaceOptimisation.Integration<ExpressionsBasedModel,SimplexTableauSolver> - Overrides:
toModelStatein classExpressionsBasedModel.Integration<SimplexTableauSolver>
-
toSolverState
public Optimisation.Result toSolverState(Optimisation.Result modelState, ExpressionsBasedModel model) Description copied from interface:Optimisation.IntegrationConvert model state to solver state. Transforming the solution (set of variable values) is the main concern. Adjusting the objective function value (if needed) is best handled elsewhere, and is not required here.The required behaviour here depends on how
Optimisation.Integration.build(Optimisation.Model)is implemented, and is the reverse mapping ofOptimisation.Integration.toModelState(Result, Optimisation.Model).- Specified by:
toSolverStatein interfaceOptimisation.Integration<ExpressionsBasedModel,SimplexTableauSolver> - Overrides:
toSolverStatein classExpressionsBasedModel.Integration<SimplexTableauSolver>
-
getIndexInSolver
- Overrides:
getIndexInSolverin classExpressionsBasedModel.Integration<SimplexTableauSolver>- Returns:
- The index with which one can reference parameters related to this variable in the solver.
-