Class Variable

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LinearExpr build()
      Builds a linear expression.
      int getIndex()
      Returns the index of the variable in the underlying ModelBuilderHelper.
      boolean getIntegrality()
      Returns whether the variable is integral.
      double getLowerBound()
      Returns the lower bound of the variable.
      java.lang.String getName()
      Returns the name of the variable given upon creation.
      double getObjectiveCoefficient()
      Returns the objective coefficient of the variable.
      double getUpperBound()
      Returns the upper bound of the variable.
      void setIntegrality​(boolean isIntegral)
      Sets the integrality of the variable.
      void setLowerBound​(double lowerBound)
      Sets the lower bound of the variable.
      void setName​(java.lang.String name)  
      void setObjectiveCoefficient​(double objectiveCoefficient)
      Sets the objective coefficient of the variable in the objective.
      void setUpperBound​(double upperBound)
      Sets the upper bound of the variable.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getIndex

        public int getIndex()
        Returns the index of the variable in the underlying ModelBuilderHelper.
      • getLowerBound

        public double getLowerBound()
        Returns the lower bound of the variable.
      • setLowerBound

        public void setLowerBound​(double lowerBound)
        Sets the lower bound of the variable.
      • getUpperBound

        public double getUpperBound()
        Returns the upper bound of the variable.
      • setUpperBound

        public void setUpperBound​(double upperBound)
        Sets the upper bound of the variable.
      • getIntegrality

        public boolean getIntegrality()
        Returns whether the variable is integral.
      • setIntegrality

        public void setIntegrality​(boolean isIntegral)
        Sets the integrality of the variable.
      • getObjectiveCoefficient

        public double getObjectiveCoefficient()
        Returns the objective coefficient of the variable.
      • setObjectiveCoefficient

        public void setObjectiveCoefficient​(double objectiveCoefficient)
        Sets the objective coefficient of the variable in the objective.
      • getName

        public java.lang.String getName()
        Returns the name of the variable given upon creation.
      • setName

        public void setName​(java.lang.String name)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object