Class SparseTableau

    • Field Detail

      • ARRAY1D_FACTORY

        private static final Array1D.Factory<java.lang.Double> ARRAY1D_FACTORY
      • myAuxiliaryObjective

        private DenseArray<java.lang.Double> myAuxiliaryObjective
      • myAuxiliaryValue

        private double myAuxiliaryValue
      • myBody

        private final SparseArray<java.lang.Double>[] myBody
      • myObjective

        private final Array1D<java.lang.Double> myObjective
      • myRHS

        private final Array1D<java.lang.Double> myRHS
      • myValue

        private double myValue
    • Constructor Detail

      • SparseTableau

        SparseTableau​(int mm,
                      int nn)
    • Method Detail

      • scale

        private static double scale​(SparseArray<java.lang.Double> body,
                                    double rhs,
                                    int col)
      • 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,
                             SparseArray<java.lang.Double> body,
                             double rhs)
      • 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
      • getValue

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