Initializing help system before first use

XPRBctr Methods

The XPRBctr type exposes the following members.

Methods
  Name Description
Public methodCode example add This adds an XPRBexpr expression to the constraint.
Public method addTerm(Double)  
Public method addTerm(XPRBvar)  
Public method addTerm(Double, XPRBvar)  
Public methodCode example addTerm(XPRBvar, Double) This adds a term to the XPRBctr constraint. The term can be constructed from an XPRBvar object, a double or a combination of the two.
Public method addTerm(XPRBvar, XPRBvar, Double)  
Public methodCode example assign Sets the constraint from a list of terms in an XPRBrelation.
Public methodCode example delTerm This deletes a term in the XPRBctr constraint relating to a specific XPRBvar variable.
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodCode example getAct Retrieves the activity value.
Public methodCode example getCoefficient(XPRBvar) Get the coefficient of a linear constraint term.
Public methodCode example getCoefficient(XPRBvar, XPRBvar) Get the coefficient of a quadratic constraint term. This method returns the coefficient of a given pair of variables in the constraint or 0 if the term does not occur.
Public methodCode example getCRef Return the constraint reference pointer.
Public methodCode example getctrRef Return the constraint reference pointer.
Public methodCode example getDual Retrieves the dual value.
Public method GetHashCode Serves as the default hash function.
(Inherited from Object)
Public method getIndicator Get the indicator type of a constraint.
Public method getIndVar Get the indicator variable of a constraint.
Public methodCode example getName Returns the constraint name.
Public method getQTerms  
Public methodCode example getRange Retrieves the constraint range.
Public methodCode example getRangeL Retrieves the lower constraint range.
Public methodCode example getRangeU Retrieves the upper constraint range.
Public methodCode example getRHS Retrieves the right hand side value of a constraint.
Public methodCode example getRNG Compute (if required) ranges and return a row range.
Public methodCode example getRowNum Retrieves the row index for a constraint.
Public methodCode example getSlack Retrieves the slack value.
Public method getTerms  
Public methodCode example getType Retrieves the constraint type.
Public method GetType Gets the Type of the current instance.
(Inherited from Object)
Public method isDelayed Determines whether the constraint is a delayed constraint.
Public methodCode example isIncludeVars Test the type of a constraint. This method indicates whether this constraint is an 'include vars' constraint or an ordinary constraint.
Public method isIndicator This tests whether the constraint is an indicator constraint or an ordinary constraint.
Public methodCode example isModCut Gets the model cut status of a constraint.
Public methodCode example isValid Checks whether the constraint object is valid.
Protected method MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
Public methodCode example print Print out the constraint.
Public methodCode example reset Reset the constraint object.
Public method setDelayed Sets a constraint as a delayed constraint.
Public methodCode example setIncludeVars Set the contstraint type. This method changes the type of a previously defined constraint from ordinary constraint to 'include vars' and vice versa. 'include vars' constraints are non-binding (type N) constraints used only to force loading of their variables into the optimizer. Constraint properties 'model cut', 'delayed constraint', 'indicator constraint' and 'include vars' are mutually exclusive. When changing one of this types to another you must first reset the corresponding type to 0.
Public method setIndicator(Int32) Set the indicator constraint type.
Public method setIndicator(Int32, XPRBvar) Set the indicator constraint type.
Public method setIndicator(XPRBvar, Int32) Set the indicator constraint type.
Public methodCode example setModCut Sets the model cut status of a constraint.
Public methodCode example setRange Sets the constraint range.
Public method setTerm(Double)  
Public method setTerm(XPRBvar)  
Public method setTerm(Double, XPRBvar)  
Public methodCode example setTerm(XPRBvar, Double) This sets a term in the XPRBctr constraint. The term can be constructed from an XPRBvar object, a double or a combination of the two.
Public methodCode example setType Sets the constraint type.
Public method ToString
(Overrides ObjectToString)
Top
See Also

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.