Package org.ojalgo.optimisation
Interface UpdatableSolver
- All Superinterfaces:
Optimisation
,Optimisation.Solver
- All Known Implementing Classes:
ActiveSetSolver
,BasePrimitiveSolver
,ConstrainedSolver
,DirectASS
,DualSimplexSolver
,IterativeASS
,LinearSolver
,PhasedSimplexSolver
,PrimalSimplexSolver
,QPESolver
,SimplexSolver
,SimplexTableauSolver
,UnconstrainedSolver
-
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 -
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
fixVariable
(int index, double value) default Collection
<Equation> generateCutCandidates
(double fractionality, boolean... integer) default boolean[]
integers
(ExpressionsBasedModel model) default boolean
isMapped()
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.Methods inherited from interface org.ojalgo.optimisation.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
-