Interface LPProblem

    • Method Detail

      • c

        ImmutableVector c()
        Get the objective function.
        Returns:
        the objective function
      • A

        ImmutableMatrix A()
        Get the coefficients, A, of the greater-than-or-equal-to constraints A * x ≥ b.
        Returns:
        the coefficients of the greater-than-or-equal-to constraints
      • b

        ImmutableVector b()
        Get the values, b, of the greater-than-or-equal-to constraints A * x ≥ b.
        Returns:
        the values of the greater-than-or-equal-to constraints
      • Aeq

        ImmutableMatrix Aeq()
        Get the coefficients, Aeq, of the equality constraints Aeq * x ≥ beq.
        Returns:
        the coefficients of the equality constraints
      • beq

        ImmutableVector beq()
        Get the values, beq, of the equality constraints Aeq * x ≥ beq.
        Returns:
        the values of the equality constraints
      • isFree

        boolean isFree​(int i)
        Check whether xi is a free variable after handling the box constraints.
        Parameters:
        i - the index of a variable, counting from 1
        Returns:
        true if xi is free