Class ConvexSolver.Builder
java.lang.Object
org.ojalgo.optimisation.GenericSolver.Builder<ConvexSolver.Builder, ConvexSolver>
org.ojalgo.optimisation.convex.ConvexSolver.Builder
- All Implemented Interfaces:
Optimisation, Optimisation.ProblemStructure
- Enclosing class:
ConvexSolver
public static final class ConvexSolver.Builder
extends GenericSolver.Builder<ConvexSolver.Builder, ConvexSolver>
-
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 -
Field Summary
Fields inherited from interface Optimisation.ProblemStructure
DEBUG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappend(StringBuilder builder) protected ConvexSolverdoBuild(Optimisation.Options options) equalities(Access2D<?> mtrxAE, Access1D<?> mtrxBE) equality(double rhs, double... factors) protected PhysicalStore<Double> getC()Linear objective: [C]protected <N extends Comparable<N>>
ConvexData<N> getConvexData(PhysicalStore.Factory<N, ?> factory) protected PhysicalStore<Double> getQ()Quadratic objective: [Q]inequalities(Access2D<?> mtrxAI, Access1D<?> mtrxBI) inequality(double rhs, double... factors) linear(double... factors) Set the linear part of the objective functionSet the linear part of the objective functionobjective(int index, double value) Set one element of the linear part of the objective functionobjective(int row, int col, double value) Set one element of the quadratic part of the objective functionobjective(MatrixStore<?> mtrxQ, MatrixStore<?> mtrxC) Set the quadratic part of the objective functionDisregard the objective function (set it to zero) and form the dual LP.Approximate at origin (0.0 vector)toLinearApproximation(Access1D<Double> point) Linearise the objective function (at the specified point) and duplicate all variables to handle the (potential) positive and negative parts separately.Methods inherited from class GenericSolver.Builder
append, build, build, countAdditionalConstraints, countEqualityConstraints, countInequalityConstraints, countVariables, doCountVariables, getAE, getAE, getAE, getAI, getAI, getAI, getBE, getBE, getBI, getBI, getFactory, getLowerBounds, getObjective, getRowsAE, getRowsAI, getUpperBounds, reset, setNumberOfVariables, setObjective, solve, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Optimisation.ProblemStructure
countConstraints
-
Constructor Details
-
Builder
Builder() -
Builder
Builder(int nbVariables) -
Builder
Builder(MatrixStore<Double>[] matrices)
-
-
Method Details
-
equalities
- Overrides:
equalitiesin classGenericSolver.Builder<ConvexSolver.Builder, ConvexSolver>
-
equality
- Overrides:
equalityin classGenericSolver.Builder<ConvexSolver.Builder, ConvexSolver>
-
getObjective
- Overrides:
getObjectivein classGenericSolver.Builder<ConvexSolver.Builder, ConvexSolver>
-
inequalities
- Overrides:
inequalitiesin classGenericSolver.Builder<ConvexSolver.Builder, ConvexSolver>
-
inequality
- Overrides:
inequalityin classGenericSolver.Builder<ConvexSolver.Builder, ConvexSolver>
-
linear
Set the linear part of the objective function -
linear
Set the linear part of the objective function -
objective
Set one element of the linear part of the objective function -
objective
Set one element of the quadratic part of the objective function -
objective
-
quadratic
Set the quadratic part of the objective function -
toFeasibilityChecker
Disregard the objective function (set it to zero) and form the dual LP. -
toLinearApproximation
-
toLinearApproximation
Linearise the objective function (at the specified point) and duplicate all variables to handle the (potential) positive and negative parts separately. -
append
- Overrides:
appendin classGenericSolver.Builder<ConvexSolver.Builder, ConvexSolver>
-
doBuild
- Specified by:
doBuildin classGenericSolver.Builder<ConvexSolver.Builder, ConvexSolver>
-
getC
Linear objective: [C]- Overrides:
getCin classGenericSolver.Builder<ConvexSolver.Builder, ConvexSolver>
-
getConvexData
-
getQ
Quadratic objective: [Q]
-