General Constraint Attributes

These are general constraint attributes, meaning that they are associated with specific general constraints in the model. If the attribute name contains string "GenConstr", then it is for all types of general constraints. If it starts with string "Func", then it is only for function constraints.

You should use one of the various get routines to retrieve the value of an attribute. These are described at the beginning of this section. For the object-oriented interfaces, general constraint attributes are retrieved by invoking the get method on a constraint object. For attributes that can be modified directly by the user, you can use one of the various set methods.

Attempting to query an attribute that is not available will produce an error. In C, the attribute query routine will return a GRB_ERROR_DATA_NOT_AVAILABLE error code. The object-oriented interfaces will throw an exception.



Subsections