Initializing help system before first use

XPRMLinCtr

  • All Implemented Interfaces:
    XPRMTyped


    public class XPRMLinCtr
    extends XPRMReference
    A linear constraint in Mosel. The functions provided here can be used to retrieve solution information after the problem has been solved.
    • Method Detail

      • getActivity

        public final double getActivity()
        Activity.
        Returns:
        The activity value or 0 if no solution is available
      • getSolution

        public final double getSolution()
        Solution value. This corresponds to the evaluation of the linear expression (including constant term/RHS) on the current solution.
        Returns:
        The solution value
      • getDual

        public final double getDual()
        Dual.
        Returns:
        The dual value or 0 if no solution is available
      • getSlack

        public final double getSlack()
        Slack.
        Returns:
        The slack value or 0 if no solution is available
      • getNumber

        public final int getNumber()
        Line number. This is the line representing the constraint in the matrix - available only if the matrix has been generated. Values ≤-2 are used for SOS numbers.
        Returns:
        The line number (≥0 or ≤-2) or -1 is no matrix is available or the constraint does not belong to the problem.
      • asLinCtr

        public final XPRMLinCtr asLinCtr()
        Description copied from class: XPRMValue
        A linear constraint. This function is defined if the actual object is a linear constraint.
        Overrides:
        asLinCtr in class  XPRMValue
        Returns:
        The linear constraint as a XPRMLinCtr
      • getTypeCode

        public final int getTypeCode()
        Description copied from interface: XPRMTyped
        Type code. The code is one of the TYP_* values.
        Returns:
        Encoded type
      • getTypeName

        public final java.lang.String getTypeName()
        Description copied from interface: XPRMTyped
        String representation of type.
        Returns:
        Type name
      • toString

        public final java.lang.String toString()
        Activity value as a string.
        Specified by:
        toString in class  XPRMReference
        Returns:
        Text representation of the activity value