Package org.ojalgo.optimisation.linear
Class RevisedStore
java.lang.Object
org.ojalgo.optimisation.linear.SimplexStore
org.ojalgo.optimisation.linear.RevisedStore
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ojalgo.optimisation.linear.SimplexStore
SimplexStore.ColumnState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PhysicalStore
<Double> a(N) in Gurobi presentation - delta – reduced costsprivate final PhysicalStore
<Double> Reduced costs / dual slackprivate final PhysicalStore
<Double> private R064Store
private final MatrixStore
<Double> private final ColumnsSupplier
<Double> private final ColumnsSupplier.SingleView
<Double> private final R064Store
private final ProductFormInverse
private final R064Store
private final PhysicalStore
<Double> cost reducerprivate final PhysicalStore
<Double> primal basic solutionprivate final PhysicalStore
<Double> delta – primal basic solutionprivate final PhysicalStore
<Double> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
(package private) void
(package private) void
(package private) Mutate2D
The simplex' constraints body (including the parts corresponding to slack and artificial variables).(package private) Mutate1D
The simplex' constraints RHS.(package private) void
copyBasicSolution
(double[] solution) (package private) void
private void
doBodyRow
(int i, PhysicalStore<Double> destination) private void
doExclTranspMult
(MatrixStore<Double> lambda, PhysicalStore<Double> results) (package private) double
(package private) double
getCost
(int j) (package private) double
getCurrentElement
(int i, SimplexSolver.EnterInfo enter) The current (tableau) constraint body element.(package private) double
getCurrentElement
(SimplexSolver.ExitInfo exit, int je) The current (tableau) constraint body element.(package private) double
getCurrentRHS
(int i) The current (tableau) constraint RHS.(package private) double
getInfeasibility
(int i) (package private) double
getReducedCost
(int je) private static R064Store
newColumn
(int nbRows) private static ColumnsSupplier
<Double> newMatrix
(int nbRows, int nbCols) private static R064Store
newRow
(int nbCols) (package private) Mutate1D
The simplex' objective function.protected void
pivot
(SimplexSolver.IterDescr iteration) (package private) void
resetBasis
(int[] basis) Everything that is not in the basis is set to be in at lower bound.(package private) void
(package private) void
protected void
shiftColumn
(int col, double shift) (package private) Primitive1D
sliceBodyRow
(int i) (package private) Primitive1D
(package private) void
Methods inherited from class org.ojalgo.optimisation.linear.SimplexStore
countRemainingArtificials, extractSolution, generateCutCandidates, getColumnState, getExcludedLower, getExcludedUnbounded, getExcludedUpper, getLowerBound, getLowerBounds, getLowerGap, getRange, getUpperBound, getUpperBounds, getUpperGap, isArtificial, isExcluded, isIncluded, isNegated, isPrintable, isRemainingArtificials, lower, newDualSimplexSolver, newPhasedSimplexSolver, newPrimalSimplexSolver, newStoreFactory, toString, unbounded, update, updateBasis, updateRange, upper
-
Field Details
-
a
a(N) in Gurobi presentation - delta – reduced costs -
d
Reduced costs / dual slack -
l
-
myAlternativeObjective
-
myBasis
-
myConstraintsBody
-
myConstraintsColumn
-
myConstraintsRHS
-
myInvBasis
-
myObjective
-
r
cost reducer -
x
primal basic solution -
y
delta – primal basic solution -
z
-
-
Constructor Details
-
RevisedStore
RevisedStore(int mm, int nn) -
RevisedStore
RevisedStore(LinearStructure linearStructure)
-
-
Method Details
-
newColumn
-
newMatrix
-
newRow
-
doBodyRow
-
doExclTranspMult
-
pivot
- Overrides:
pivot
in classSimplexStore
-
shiftColumn
protected void shiftColumn(int col, double shift) - Overrides:
shiftColumn
in classSimplexStore
-
calculateDualDirection
- Specified by:
calculateDualDirection
in classSimplexStore
-
calculateIteration
void calculateIteration()- Specified by:
calculateIteration
in classSimplexStore
-
calculatePrimalDirection
- Specified by:
calculatePrimalDirection
in classSimplexStore
-
constraintsBody
Mutate2D constraintsBody()Description copied from class:SimplexStore
The simplex' constraints body (including the parts corresponding to slack and artificial variables).- Specified by:
constraintsBody
in classSimplexStore
-
constraintsRHS
Mutate1D constraintsRHS()Description copied from class:SimplexStore
The simplex' constraints RHS.- Specified by:
constraintsRHS
in classSimplexStore
-
copyBasicSolution
void copyBasicSolution(double[] solution) - Specified by:
copyBasicSolution
in classSimplexStore
-
copyObjective
void copyObjective()- Specified by:
copyObjective
in classSimplexStore
-
extractValue
double extractValue()- Specified by:
extractValue
in classSimplexStore
-
getCost
double getCost(int j) - Specified by:
getCost
in classSimplexStore
-
getCurrentElement
Description copied from class:SimplexStore
The current (tableau) constraint body element.- Specified by:
getCurrentElement
in classSimplexStore
-
getCurrentElement
Description copied from class:SimplexStore
The current (tableau) constraint body element.- Specified by:
getCurrentElement
in classSimplexStore
-
getCurrentRHS
double getCurrentRHS(int i) Description copied from class:SimplexStore
The current (tableau) constraint RHS.- Specified by:
getCurrentRHS
in classSimplexStore
-
getInfeasibility
double getInfeasibility(int i) - Specified by:
getInfeasibility
in classSimplexStore
-
getReducedCost
double getReducedCost(int je) - Specified by:
getReducedCost
in classSimplexStore
-
objective
Mutate1D objective()Description copied from class:SimplexStore
The simplex' objective function.- Specified by:
objective
in classSimplexStore
-
resetBasis
void resetBasis(int[] basis) Description copied from class:SimplexStore
Everything that is not in the basis is set to be in at lower bound.- Overrides:
resetBasis
in classSimplexStore
-
restoreObjective
void restoreObjective()- Specified by:
restoreObjective
in classSimplexStore
-
setupClassicPhase1Objective
void setupClassicPhase1Objective()- Specified by:
setupClassicPhase1Objective
in classSimplexStore
-
sliceBodyRow
- Specified by:
sliceBodyRow
in classSimplexStore
-
sliceDualVariables
Primitive1D sliceDualVariables()- Specified by:
sliceDualVariables
in classSimplexStore
-
switchObjective
void switchObjective()- Specified by:
switchObjective
in classSimplexStore
-