Click or drag to resize

XPRBcut Methods

The XPRBcut type exposes the following members.

Methods
 NameDescription
Public methodCode exampleadd Add an XPRBexpr expression to a cut. The entire expression given is added to the left hand side of the cut. That is, in order to normalize the cut representation, any constant term contained in the expression will be subtracted from the RHS value.
Public methodCode exampleaddTerm(Double) Add a new numeric term to the current XPRBcut.
Public methodCode exampleaddTerm(XPRBvar) Set a new term to the current XPRBcut.
Public methodCode exampleaddTerm(Double, XPRBvar) Add a new term to the current XPRBcut.
Public methodCode exampleaddTerm(XPRBvar, Double) Add a new term to the current XPRBcut.
Public methodCode exampleassign Assigns an XPRBrelation relation as the current XPRBcut.
Public methodCode exampledelTerm Delete a variable term in the current XPRBcut.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodCode examplegetCRef Returns the CRef reference for the current XPRBcut object.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodCode examplegetID Get the ID of a cut. The default ID value is 0.
Public methodCode examplegetRHS Retrieve the RHS of the current XPRBcut.
Public methodCode examplegetType Get the cut type.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodCode exampleisValid Returns whether the current XPRBcut object is valid.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodCode exampleprint Prints the current XPRBcut object.
Public methodCode examplereset Resets the current XPRBcut object.
Public methodCode examplesetID Set the cut ID value. This method changes the ID value of a previously defined cut. The cut ID can be chosen freely by the user to identify or classify (groups of) cuts.
Public methodCode examplesetTerm(Double) Set the constant term (= RHS value) of a cut. The RHS of the cut is set to the given constant.
Public methodCode examplesetTerm(XPRBvar) Set a cut term. This method sets the coefficient of a given variable to 1.0.
Public methodCode examplesetTerm(Double, XPRBvar) Set a cut term. This method sets the coefficient of a given variable to the value val.
Public methodCode examplesetTerm(XPRBvar, Double) Set a cut term. This method sets the coefficient of a given variable to the value val.
Public methodCode examplesetType Set the cut row type. This method changes the type of a previously defined cut to inequality or equation.
Public methodToString
(Overrides ObjectToString)
Top
See Also