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
public abstract class LinearSolver extends GenericSolver implements UpdatableSolver
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LinearSolver.Builder
Compared toLinearSolver.StandardBuilder
this builder:
1) Accepts inequality constraints
2) Has relaxed the requiremnt on the RHS to be non-negative (both equalities and inequalities)static class
LinearSolver.Configuration
static class
LinearSolver.ModelIntegration
(package private) static class
LinearSolver.NewIntegration
An integration to a new/alternative/experimental LP-solver.(package private) static class
LinearSolver.OldIntegration
-
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
Fields Modifier and Type Field Description static ExpressionsBasedModel.Integration<LinearSolver>
INTEGRATION
(package private) static LinearSolver.NewIntegration
NEW_INTEGRATION
An integration to a new/alternative/experimental LP-solver.(package private) static LinearSolver.OldIntegration
OLD_INTEGRATION
An integration to a old/traditional/default LP-solver.-
Fields inherited from class org.ojalgo.optimisation.GenericSolver
options
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LinearSolver(Optimisation.Options solverOptions)
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static LinearSolver.Builder
newBuilder()
static LinearSolver.Builder
newBuilder(double... objective)
static LinearSolver.Builder
newGeneralBuilder()
Deprecated.v55 UsenewBuilder()
insteadstatic LinearSolver.Builder
newGeneralBuilder(double... objective)
Deprecated.v55 UsenewBuilder(double...)
insteadstatic LinearSolver
newSolver(ExpressionsBasedModel model)
static LinearSolver.Builder
newStandardBuilder()
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<java.lang.Double>
toObjectiveFunction(MatrixStore<java.lang.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 Detail
-
INTEGRATION
public static final ExpressionsBasedModel.Integration<LinearSolver> INTEGRATION
-
NEW_INTEGRATION
static final LinearSolver.NewIntegration 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
static final LinearSolver.OldIntegration OLD_INTEGRATION
An integration to a old/traditional/default LP-solver.
-
-
Constructor Detail
-
LinearSolver
protected LinearSolver(Optimisation.Options solverOptions)
-
-
Method Detail
-
newBuilder
public static LinearSolver.Builder newBuilder()
-
newBuilder
public static LinearSolver.Builder newBuilder(double... objective)
-
newGeneralBuilder
@Deprecated public static LinearSolver.Builder newGeneralBuilder()
Deprecated.v55 UsenewBuilder()
instead
-
newGeneralBuilder
@Deprecated public static LinearSolver.Builder newGeneralBuilder(double... objective)
Deprecated.v55 UsenewBuilder(double...)
instead
-
newSolver
public static LinearSolver newSolver(ExpressionsBasedModel model)
-
newStandardBuilder
@Deprecated public static LinearSolver.Builder newStandardBuilder()
Deprecated.v55 UsenewBuilder()
instead
-
newStandardBuilder
@Deprecated public static LinearSolver.Builder newStandardBuilder(double... objective)
Deprecated.v55 UsenewBuilder(double...)
instead
-
solve
public static Optimisation.Result solve(ConvexData convex, Optimisation.Options options, boolean zeroC)
-
toObjectiveFunction
static LinearFunction<java.lang.Double> toObjectiveFunction(MatrixStore<java.lang.Double> mtrxC)
-
-