Interface UpdatableSolver
- All Superinterfaces:
Optimisation, Optimisation.Solver
- All Known Implementing Classes:
LinearSolver
-
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 -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanfixVariable(int index, double value) default Collection<Equation> generateCutCandidates(double fractionality, boolean... integer) default boolean[]integers(ExpressionsBasedModel model) default booleanisMapped()default booleanupdateRange(int index, double lower, double upper) A generalisation offixVariable(int, double)where the new/updated lower and upper bounds do not need to be equal.Methods inherited from interface Optimisation.Solver
dispose, solve, solve
-
Method Details
-
fixVariable
default boolean fixVariable(int index, double value) - Parameters:
index- The, solver specific, variable indexvalue- The value to fix that variable to- Returns:
- true if fixing is supported and was successful, otherwise false
-
generateCutCandidates
-
getEntityMap
ExpressionsBasedModel.EntityMap getEntityMap() -
integers
-
isMapped
default boolean isMapped() -
updateRange
default boolean updateRange(int index, double lower, double upper) A generalisation offixVariable(int, double)where the new/updated lower and upper bounds do not need to be equal.- Parameters:
index- The, solver specific, variable indexlower- New lower boundupper- New upper bound- Returns:
- true if updating the range is supported and was successful, otherwise false
-