Initializing help system before first use

XPRMValue

  • java.lang.Object
    • com.dashoptimization.XPRMValue
    • Constructor Detail

      • XPRMValue

        public XPRMValue()
    • Method Detail

      • asInteger

        public int asInteger()
        An integer. This function is defined if the actual object is an integer.
        Returns:
        The integer value
      • asReal

        public double asReal()
        A real. This function is defined if the actual object is a real.
        Returns:
        The real value
      • asBoolean

        public boolean asBoolean()
        A Boolean. This function is defined if the actual object is a Boolean.
        Returns:
        The Boolean value
      • asString

        public java.lang.String asString()
        A string. This function is defined if the actual object is a string.
        Returns:
        The string value
      • asMPVar

        public XPRMMPVar asMPVar()
        A decision variable. This function is defined if the actual object is a decision variable.
        Returns:
        The decision variable as a XPRMMPVar
      • asLinCtr

        public XPRMLinCtr asLinCtr()
        A linear constraint. This function is defined if the actual object is a linear constraint.
        Returns:
        The linear constraint as a XPRMLinCtr
      • asExternal

        public XPRMExternal asExternal()
        An external type value. This function is defined if the actual object is of an external type.
        Returns:
        The reference as a XPRMExternal
      • asSet

        public XPRMSet asSet()
        A set. This function is defined if the actual object is a set.
        Returns:
        The set as a XPRMSet
      • asList

        public XPRMList asList()
        A list. This function is defined if the actual object is a list.
        Returns:
        The list as a XPRMList
      • asArray

        public XPRMArray asArray()
        An array. This function is defined if the actual object is an array.
        Returns:
        The list as a XPRMArray
      • asRecord

        public XPRMRecord asRecord()
        A record. This function is defined if the actual object is a record.
        Returns:
        The record as a XPRMRecord
      • asProblem

        public XPRMProblem asProblem()
        A problem. This function is defined if the actual object is a problem.
        Returns:
        The problem as a XPRMProblem