Interface SolutionConstraint


  • public interface SolutionConstraint
    This interface allows accessing a constraint of the LP problem where each unknown variable has been assigned the optimal value. It is possible to obtain the LHS value of the constraint based on the optimal solution. By LHS component we mean the linear equation that occupies the left-hand side of the constraint. Given a constraint X1 + 3X2 ≥ 7, the LHS component is given by the part X1 + 3X2.
    Version:
    1.0
    Author:
    Stefano Scarioli
    See Also:
    SSC Software www.sscLab.org
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getName()
      Retrieves the name of the constraint.
      ConsType getRel()
      Retrieves the type of constraint (GE, LE, EQ).
      double getRhs()
      Retrieves the fixed component Rhs of the constraint.
      double getValue()
      Retrieves the value that the LHS component assumes by substituting the unknown variables with the determined optimal solution.
    • Method Detail

      • getRhs

        double getRhs()
        Retrieves the fixed component Rhs of the constraint.
        Returns:
        The fixed component Rhs of the constraint.
      • getValue

        double getValue()
        Retrieves the value that the LHS component assumes by substituting the unknown variables with the determined optimal solution.
        Returns:
        The value that the LHS component assumes by substituting the unknown variables with the determined optimal solution.
      • getRel

        ConsType getRel()
        Retrieves the type of constraint (GE, LE, EQ).
        Returns:
        The type of constraint (GE, LE, EQ).
      • getName

        String getName()
        Retrieves the name of the constraint.
        Returns:
        The name of the constraint.