public static final class IntegerSolver.ModelIntegration extends ExpressionsBasedModel.Integration<IntegerSolver>
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 |
---|---|
IntegerSolver |
build(ExpressionsBasedModel model)
An integration must be able to instantiate a solver that can handle (any) model instance.
|
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, getIndexInSolver
public IntegerSolver 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,IntegerSolver>
toModelState
in class ExpressionsBasedModel.Integration<IntegerSolver>
public Optimisation.Result toSolverState(Optimisation.Result modelState, ExpressionsBasedModel model)
Optimisation.Integration
toSolverState
in interface Optimisation.Integration<ExpressionsBasedModel,IntegerSolver>
toSolverState
in class ExpressionsBasedModel.Integration<IntegerSolver>
protected boolean isSolutionMapped()
isSolutionMapped
in class ExpressionsBasedModel.Integration<IntegerSolver>
Copyright © 2019 Optimatika. All rights reserved.