Class DenseTableau

All Implemented Interfaces:
Access1D<Double>, Access2D<Double>, Mutate1D, Mutate2D, Structure1D, Structure2D

final class DenseTableau extends SimplexTableau
  • Field Details

    • myAuxiliaryRow

      private double[] myAuxiliaryRow
    • myColDim

      private final int myColDim
    • myTableau

      private final double[][] myTableau
  • Constructor Details

    • DenseTableau

      DenseTableau(int mm, int nn)
    • DenseTableau

      DenseTableau(LinearStructure linearStructure)
  • Method Details

    • doubleValue

      public double doubleValue(int row, int col)
      Description copied from interface: Access2D
      Extracts one element of this matrix as a double.
      Parameters:
      row - A row index.
      col - A column index.
      Returns:
      One matrix element
    • getColDim

      public int getColDim()
      Returns:
      The number of columns
    • getRowDim

      public int getRowDim()
      Returns:
      The number of rows
    • set

      public void set(int row, int col, double value)
    • doPivot

      private void doPivot(int row, int col, double[] pivotRow)
    • scale

      private void scale(double[] body, int col)
    • doPivot

      protected void doPivot(int row, int col)
      Description copied from class: SimplexTableau
      Perform the pivot operation on the tableau – only. Various auxiliary bookkeeping should NOT be done here.
      Specified by:
      doPivot in class SimplexTableau
    • shiftColumn

      protected void shiftColumn(int col, double shift)
      Overrides:
      shiftColumn in class SimplexStore
    • copyBasicSolution

      void copyBasicSolution(double[] solution)
      Specified by:
      copyBasicSolution in class SimplexStore
    • copyObjective

      void copyObjective()
      Specified by:
      copyObjective in class SimplexStore
    • extractValue

      double extractValue()
      Specified by:
      extractValue in class SimplexStore
    • fixVariable

      boolean fixVariable(int index, double value)
      Specified by:
      fixVariable in class SimplexTableau
    • getInfeasibility

      double getInfeasibility()
      Specified by:
      getInfeasibility in class SimplexTableau
      Returns:
      The phase 1 objective function value
    • getValue

      double getValue()
      Specified by:
      getValue in class SimplexTableau
      Returns:
      The (phase 2) objective function value
    • newConstraintsBody

      Primitive2D newConstraintsBody()
      Specified by:
      newConstraintsBody in class SimplexTableau
    • newConstraintsRHS

      Primitive1D newConstraintsRHS()
      Specified by:
      newConstraintsRHS in class SimplexTableau
    • newObjective

      Primitive1D newObjective()
      Specified by:
      newObjective in class SimplexTableau
    • restoreObjective

      void restoreObjective()
      Specified by:
      restoreObjective in class SimplexStore
    • switchObjective

      void switchObjective()
      Specified by:
      switchObjective in class SimplexStore