XPRMLinCtr
- java.lang.Object
-  
  - com.dashoptimization.XPRMValue
-  
    - com.dashoptimization.XPRMReference
-  
      - com.dashoptimization.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.
-  
    
   -  
        Field Summary-  
          Fields inherited from interface com.dashoptimization.XPRMTypedGRP_DYN, GRP_GEN, MSK_FIN, MSK_GRP, MSK_STR, MSK_TYP, STR_ARRAY, STR_CONST, STR_LIST, STR_MEM, STR_NTYP, STR_PROB, STR_PROC, STR_REC, STR_REF, STR_SET, STR_UTYP, TYP_BOOL, TYP_EXTN, TYP_INT, TYP_LINCTR, TYP_MPVAR, TYP_NOT, TYP_REAL, TYP_STRING
 
-  
          
 -  
        Method SummaryModifier and Type Method and Description XPRMLinCtrasLinCtr()A linear constraint.doublegetActivity()Activity.doublegetDual()Dual.intgetNumber()Line number.doublegetSlack()Slack.doublegetSolution()Solution value.intgetTypeCode()Type code.java.lang.StringgetTypeName()String representation of type.java.lang.StringtoString()Activity value as a string.-  
          Methods inherited from class com.dashoptimization.XPRMReferencegetStructCode, getStructName
 
-  
          
 
-  
        
-  
    
   -  
        Method Detail-  getActivitypublic final double getActivity() Activity.- Returns:
- The activity value or 0 if no solution is available
 
 -  getSolutionpublic 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
 
 -  getDualpublic final double getDual() Dual.- Returns:
- The dual value or 0 if no solution is available
 
 -  getSlackpublic final double getSlack() Slack.- Returns:
- The slack value or 0 if no solution is available
 
 -  getNumberpublic 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.
 
 -  asLinCtrpublic final XPRMLinCtr asLinCtr() Description copied from class:XPRMValueA linear constraint. This function is defined if the actual object is a linear constraint.- Overrides:
- 
         asLinCtrin classXPRMValue
- Returns:
- 
         The linear constraint as a 
         XPRMLinCtr
 
 -  getTypeCodepublic final int getTypeCode() Description copied from interface:XPRMTypedType code. The code is one of theTYP_*values.- Returns:
- Encoded type
 
 -  getTypeNamepublic final java.lang.String getTypeName() Description copied from interface:XPRMTypedString representation of type.- Returns:
- Type name
 
 -  toStringpublic final java.lang.String toString() Activity value as a string.- Specified by:
- 
         toStringin classXPRMReference
- Returns:
- Text representation of the activity value
 
 
-  
 
-  
        
 
