org.ojalgo.optimisation
Class GenericSolver.Matrices<M extends GenericSolver.Matrices<M>>

java.lang.Object
  extended by org.ojalgo.optimisation.GenericSolver.Matrices<M>
Direct Known Subclasses:
IntegerSolver.Builder, LinearSolver.Builder, QuadraticSolver.Builder
Enclosing class:
GenericSolver

public abstract static class GenericSolver.Matrices<M extends GenericSolver.Matrices<M>>
extends Object


Method Summary
 M balance()
          Will rescale problem parameters to minimise rounding and representation errors.
 int countEqualityConstraints()
           
 int countInequalityConstraints()
           
 int countVariables()
           
 M eliminate()
          Deprecated. Doesn't work!
 M equalities(MatrixStore<Double> AE, MatrixStore<Double> BE)
           
 MatrixStore<Double> getAE()
          [AE][X] == [BE]
 MatrixStore<Double> getAE(int... aColSelector)
          [AE][X] == [BE]
 MatrixStore<Double> getAI()
          [AI][X] <= [BI]
 MatrixStore<Double> getAI(int... aColSelector)
          [AI][X] <= [BI]
 MatrixStore<Double> getBE()
          [AE][X] == [BE]
 MatrixStore<Double> getBI()
          [AI][X] <= [BI]
 MatrixStore<Double> getC()
          Linear objective: [C]
 MatrixStore<Double> getC(int... aRowSelector)
          Linear objective: [C]
 MatrixStore<Double> getLE()
          Lagrange multipliers / dual variables for Equalities
 MatrixStore<Double> getLI()
          Lagrange multipliers / dual variables for Inequalities
 MatrixStore<Double> getLI(int[] aRowSelector)
          Lagrange multipliers / dual variables for selected inequalities
 MatrixStore<Double> getQ()
          Quadratic objective: [Q]
 PhysicalStore<Double> getSE()
          Slack for Equalities: [SE] = [BE] - [AE][X]
 PhysicalStore<Double> getSI()
          Slack for Inequalities: [SI] = [BI] - [AI][X]
 MatrixStore<Double> getSI(int... aRowSelector)
          Selected Slack for Inequalities
 MatrixStore<Double> getX()
          Solution / Variables: [X]
 boolean hasEqualityConstraints()
           
 boolean hasInequalityConstraints()
           
 boolean hasObjective()
           
 M inequalities(MatrixStore<Double> AI, MatrixStore<Double> BI)
           
 M objective(MatrixStore<Double> C)
           
 M objective(MatrixStore<Double> Q, MatrixStore<Double> C)
           
 M round(int aScale)
          Will round to the specified scale (number of decimals) on all matrices.
 void setLE(MatrixStore<Double> aMtrx)
           
 void setLI(MatrixStore<Double> aMtrx)
           
 void setX(MatrixStore<Double> aMtrx)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

balance

public final M balance()
Will rescale problem parameters to minimise rounding and representation errors.


countEqualityConstraints

public final int countEqualityConstraints()

countInequalityConstraints

public final int countInequalityConstraints()

countVariables

public final int countVariables()

eliminate

@Deprecated
public final M eliminate()
Deprecated. Doesn't work!

Will remove redundant equality constraints.


equalities

public final M equalities(MatrixStore<Double> AE,
                          MatrixStore<Double> BE)

getAE

public final MatrixStore<Double> getAE()
[AE][X] == [BE]


getAE

public final MatrixStore<Double> getAE(int... aColSelector)
[AE][X] == [BE]


getAI

public final MatrixStore<Double> getAI()
[AI][X] <= [BI]


getAI

public final MatrixStore<Double> getAI(int... aColSelector)
[AI][X] <= [BI]


getBE

public final MatrixStore<Double> getBE()
[AE][X] == [BE]


getBI

public final MatrixStore<Double> getBI()
[AI][X] <= [BI]


getC

public final MatrixStore<Double> getC()
Linear objective: [C]


getC

public final MatrixStore<Double> getC(int... aRowSelector)
Linear objective: [C]


getLE

public final MatrixStore<Double> getLE()
Lagrange multipliers / dual variables for Equalities


getLI

public final MatrixStore<Double> getLI()
Lagrange multipliers / dual variables for Inequalities


getLI

public final MatrixStore<Double> getLI(int[] aRowSelector)
Lagrange multipliers / dual variables for selected inequalities


getQ

public final MatrixStore<Double> getQ()
Quadratic objective: [Q]


getSE

public final PhysicalStore<Double> getSE()
Slack for Equalities: [SE] = [BE] - [AE][X]


getSI

public final PhysicalStore<Double> getSI()
Slack for Inequalities: [SI] = [BI] - [AI][X]


getSI

public final MatrixStore<Double> getSI(int... aRowSelector)
Selected Slack for Inequalities


getX

public final MatrixStore<Double> getX()
Solution / Variables: [X]


hasEqualityConstraints

public final boolean hasEqualityConstraints()

hasInequalityConstraints

public final boolean hasInequalityConstraints()

hasObjective

public final boolean hasObjective()

inequalities

public final M inequalities(MatrixStore<Double> AI,
                            MatrixStore<Double> BI)

objective

public final M objective(MatrixStore<Double> C)

objective

public final M objective(MatrixStore<Double> Q,
                         MatrixStore<Double> C)

round

public final M round(int aScale)
Will round to the specified scale (number of decimals) on all matrices.


setLE

public final void setLE(MatrixStore<Double> aMtrx)

setLI

public final void setLI(MatrixStore<Double> aMtrx)

setX

public final void setX(MatrixStore<Double> aMtrx)

toString

public final String toString()
Overrides:
toString in class Object