Class LPRevisedSimplexSolver.Problem

    • Method Detail

      • c

        public ImmutableVector c()
        Description copied from interface: LPProblem
        Get the objective function.
        Specified by:
        c in interface LPProblem
        Returns:
        the objective function
      • A

        public ImmutableMatrix A()
        Description copied from interface: LPProblem
        Get the coefficients, A, of the greater-than-or-equal-to constraints A * x ≥ b.
        Specified by:
        A in interface LPProblem
        Returns:
        the coefficients of the greater-than-or-equal-to constraints
      • b

        public ImmutableVector b()
        Description copied from interface: LPProblem
        Get the values, b, of the greater-than-or-equal-to constraints A * x ≥ b.
        Specified by:
        b in interface LPProblem
        Returns:
        the values of the greater-than-or-equal-to constraints
      • Aeq

        public ImmutableMatrix Aeq()
        Description copied from interface: LPProblem
        Get the coefficients, Aeq, of the equality constraints Aeq * x ≥ beq.
        Specified by:
        Aeq in interface LPProblem
        Returns:
        the coefficients of the equality constraints
      • beq

        public ImmutableVector beq()
        Description copied from interface: LPProblem
        Get the values, beq, of the equality constraints Aeq * x ≥ beq.
        Specified by:
        beq in interface LPProblem
        Returns:
        the values of the equality constraints
      • isFree

        public boolean isFree​(int i)
        Description copied from interface: LPProblem
        Check whether xi is a free variable after handling the box constraints.
        Specified by:
        isFree in interface LPProblem
        Parameters:
        i - the index of a variable, counting from 1
        Returns:
        true if xi is free
      • dimension

        public int dimension()
        Description copied from interface: OptimProblem
        Get the number of variables.
        Specified by:
        dimension in interface OptimProblem
        Returns:
        the number of variables.