Package org.ojalgo.optimisation.linear
Class LinearSolver
java.lang.Object
org.ojalgo.optimisation.GenericSolver
org.ojalgo.optimisation.linear.LinearSolver
- All Implemented Interfaces:
Optimisation
,Optimisation.Solver
,UpdatableSolver
- Direct Known Subclasses:
SimplexSolver
,SimplexTableauSolver
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Compared toinvalid reference
LinearSolver.StandardBuilder
1) Accepts inequality constraints
2) Has relaxed the requiremnt on the RHS to be non-negative (both equalities and inequalities)static final class
static final class
(package private) static final class
An integration to a new/alternative/experimental LP-solver.(package private) static final class
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 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExpressionsBasedModel.Integration
<LinearSolver> (package private) static final LinearSolver.NewIntegration
An integration to a new/alternative/experimental LP-solver.(package private) static final LinearSolver.OldIntegration
An integration to a old/traditional/default LP-solver.Fields inherited from class org.ojalgo.optimisation.GenericSolver
options
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LinearSolver.Builder
static LinearSolver.Builder
newBuilder
(double... objective) static LinearSolver.Builder
Deprecated.static LinearSolver.Builder
newGeneralBuilder
(double... objective) Deprecated.v55 UsenewBuilder(double...)
insteadstatic LinearSolver
newSolver
(ExpressionsBasedModel model) static LinearSolver.Builder
Deprecated.v55 UsenewBuilder()
insteadstatic LinearSolver.Builder
newStandardBuilder
(double... objective) Deprecated.v55 UsenewBuilder(double...)
insteadstatic Optimisation.Result
solve
(ConvexData convex, Optimisation.Options options, boolean zeroC) (package private) static LinearFunction
<Double> toObjectiveFunction
(MatrixStore<Double> mtrxC) Methods inherited from class org.ojalgo.optimisation.GenericSolver
countIterations, countTime, error, getClassSimpleName, getDuration, getState, incrementIterationsCount, isIterationAllowed, isLogDebug, isLogOff, isLogProgress, log, log, log, log, logProgress, resetIterationsCount, setState, setValidator, validate, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ojalgo.optimisation.Optimisation.Solver
dispose, solve, solve
Methods inherited from interface org.ojalgo.optimisation.UpdatableSolver
fixVariable, generateCutCandidates, getEntityMap, integers, isMapped, updateRange
-
Field Details
-
INTEGRATION
-
NEW_INTEGRATION
An integration to a new/alternative/experimental LP-solver. This solver is intended to replace the current (old) solver, but is not yet ready to do that. You're welcome to try it - just add this integration by callingExpressionsBasedModel.addIntegration(ExpressionsBasedModel.Integration)
. -
OLD_INTEGRATION
An integration to a old/traditional/default LP-solver.
-
-
Constructor Details
-
LinearSolver
-
-
Method Details
-
newBuilder
-
newBuilder
-
newGeneralBuilder
Deprecated.v55 UsenewBuilder()
instead -
newGeneralBuilder
Deprecated.v55 UsenewBuilder(double...)
instead -
newSolver
-
newStandardBuilder
Deprecated.v55 UsenewBuilder()
instead -
newStandardBuilder
Deprecated.v55 UsenewBuilder(double...)
instead -
solve
public static Optimisation.Result solve(ConvexData convex, Optimisation.Options options, boolean zeroC) -
toObjectiveFunction
-
newBuilder()
instead