Interface Variable


  • public interface Variable
    This interface allows accessing the optimal value assumed by the j-th variable of the LP problem (j=1..N). In addition to the optimal value, it is possible to retrieve other characteristics.
    Version:
    1.0
    Author:
    Stefano Scarioli
    See Also:
    SSC Software www.sscLab.org
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  Variable.TYPE_VAR
      Defines the type of variable: integer, binary, or real.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double getLower()
      Retrieves its lower bound.
      java.lang.String getName()
      Retrieves the name of the variable.
      Variable.TYPE_VAR getType()
      Retrieves the type of variable (integer, binary, real).
      double getUpper()
      Retrieves its upper bound if set (by default it is + ∞)
      double getValue()
      Retrieves the optimal value assumed by the variable within the determined optimal solution.
      boolean isFree()
      Retrieves true if the variable is free.
    • Method Detail

      • getName

        java.lang.String getName()
        Retrieves the name of the variable.
        Returns:
        The name of variable
      • getType

        Variable.TYPE_VAR getType()
        Retrieves the type of variable (integer, binary, real).
        Returns:
        The type of variable
      • getUpper

        double getUpper()
        Retrieves its upper bound if set (by default it is + ∞)
        Returns:
        The upper bound of variable
      • getLower

        double getLower()
        Retrieves its lower bound.
        Returns:
        The lower bound of variable
      • isFree

        boolean isFree()
        Retrieves true if the variable is free. To make a variable free, it must have been defined for the variable either a negative upper bound, or a negative lower bound, or indefinite (- ∞).
        Returns:
        True if the variable is free.
      • getValue

        double getValue()
        Retrieves the optimal value assumed by the variable within the determined optimal solution.
        Returns:
        The optimal value assumed by the variable within the determined optimal solution.