Initializing help system before first use

XPRBsetctrtype

XPRBsetctrtype


Purpose
Set the constraint type.
Synopsis
int XPRBsetctrtype(XPRBctr ctr, int qrtype);
Arguments
ctr 
Reference to a previously created constraint.
qrtype 
The constraint type, which must be one of:
XPRB_L 
'less than or equal to' constraint;
XPRB_G 
'greater than or equal to' constraint;
XPRB_E 
an equality;
XPRB_N 
a non-binding row (objective function).
Return value
0 if function executed successfully, 1 otherwise.
Example
XPRBprob prob;
XPRBctr ctr1;
   ...
ctr1 = XPRBnewctr(prob, "r1", XPRB_E);
XPRBsetctrtype(ctr1, XPRB_L);
This changes ctr1 to a `less than or equal to' constraint.
Further information
This function changes the type of a previously defined constraint to inequality, equation or non-binding. Function XPRBsetrange has to be used for changing the constraint to a ranged constraint. If a ranged constraint is changed back to some other type with this function, its upper bound becomes the right hand side value.
Related topics

© 2001-2019 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.