public static final class LinearSolver.ModelIntegration extends ExpressionsBasedModel.Integration<LinearSolver>
Optimisation.Constraint, Optimisation.Integration<M extends Optimisation.Model,S extends Optimisation.Solver>, Optimisation.Model, Optimisation.Objective, Optimisation.Options, Optimisation.Result, Optimisation.Solver, Optimisation.State
Constructor and Description |
---|
ModelIntegration() |
Modifier and Type | Method and Description |
---|---|
LinearSolver |
build(ConvexSolver.Builder convexBuilder,
Optimisation.Options options) |
LinearSolver |
build(ExpressionsBasedModel model)
An integration must be able to instantiate a solver that can handle (any) model instance.
|
protected int |
getIndexInSolver(ExpressionsBasedModel model,
Variable variable) |
boolean |
isCapable(ExpressionsBasedModel model) |
protected boolean |
isSolutionMapped() |
Optimisation.Result |
toModelState(Optimisation.Result solverState,
ExpressionsBasedModel model)
Convert solver state to model state.
|
Optimisation.Result |
toSolverState(Optimisation.Result modelState,
ExpressionsBasedModel model)
Convert model state to solver state.
|
extractSolverState
public LinearSolver build(ConvexSolver.Builder convexBuilder, Optimisation.Options options)
public LinearSolver build(ExpressionsBasedModel model)
Optimisation.Integration
public boolean isCapable(ExpressionsBasedModel model)
public Optimisation.Result toModelState(Optimisation.Result solverState, ExpressionsBasedModel model)
Optimisation.Integration
toModelState
in interface Optimisation.Integration<ExpressionsBasedModel,LinearSolver>
toModelState
in class ExpressionsBasedModel.Integration<LinearSolver>
public Optimisation.Result toSolverState(Optimisation.Result modelState, ExpressionsBasedModel model)
Optimisation.Integration
toSolverState
in interface Optimisation.Integration<ExpressionsBasedModel,LinearSolver>
toSolverState
in class ExpressionsBasedModel.Integration<LinearSolver>
protected int getIndexInSolver(ExpressionsBasedModel model, Variable variable)
getIndexInSolver
in class ExpressionsBasedModel.Integration<LinearSolver>
protected boolean isSolutionMapped()
isSolutionMapped
in class ExpressionsBasedModel.Integration<LinearSolver>
Copyright © 2019 Optimatika. All rights reserved.