public final class SimplexSolver extends LinearSolver
min [C]T[X]
when [AE][X] == [BE]
and 0 <= [X]
and 0 <= [BE]
Further it is required here that the constraint right hand sides are nonnegative (nonnegative elements in [BE]).
The general recommendation is to construct optimisation problems using ExpressionsBasedModel and not worry about solver details. If you do want to instantiate a linear solver directly use the LinearSolver.Builder class. It will return an appropriate subclass for you.
LinearSolver.Builder, LinearSolver.ModelIntegration
Optimisation.Constraint, Optimisation.Integration<M extends Optimisation.Model,S extends Optimisation.Solver>, Optimisation.Model, Optimisation.Objective, Optimisation.Options, Optimisation.Result, Optimisation.Solver, Optimisation.State
ACCURACY, options
Modifier and Type | Method and Description |
---|---|
protected Optimisation.Result |
buildResult() |
protected double |
evaluateFunction(Access1D<?> solution) |
protected PhysicalStore<Double> |
extractSolution()
Extract solution MatrixStore from the tableau
|
boolean |
fixVariable(int index,
double value) |
protected boolean |
initialise(Optimisation.Result kickStarter) |
protected boolean |
needsAnotherIteration() |
Optimisation.Result |
solve(Optimisation.Result kickStarter) |
protected boolean |
validate() |
getBuilder, getBuilder, solve
countIterations, countTime, error, getState, incrementIterationsCount, isIterationAllowed, isLogDebug, isLogOff, isLogProgress, log, log, resetIterationsCount, setState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, solve
public boolean fixVariable(int index, double value)
index
- The, solver specific, variable indexvalue
- The value to fix that variable topublic Optimisation.Result solve(Optimisation.Result kickStarter)
protected Optimisation.Result buildResult()
buildResult
in class GenericSolver
protected double evaluateFunction(Access1D<?> solution)
evaluateFunction
in class GenericSolver
protected PhysicalStore<Double> extractSolution()
extractSolution
in class GenericSolver
protected boolean initialise(Optimisation.Result kickStarter)
initialise
in class LinearSolver
protected boolean needsAnotherIteration()
needsAnotherIteration
in class LinearSolver
protected boolean validate()
Copyright © 2019 Optimatika. All rights reserved.