Retrieving and Changing Control Values
Console Xpress users may obtain control values by issuing the control name at the Optimizer prompt, >, and hitting the RETURN key. Controls may be set using the assignment syntax:
control_name = new_value
where new_value is an integer value, double or string as appropriate. For character strings, the name must be enclosed in single quotes and all eight characters must be given.
Users of the FICO Xpress Libraries are provided with the following set of functions for setting and obtaining control values:
XPRSgetintcontrol | XPRSgetdblcontrol | XPRSgetstrcontrol |
XPRSsetintcontrol | XPRSsetdblcontrol | XPRSsetstrcontrol |
It is an important point that the controls as listed in this chapter must be prefixed with XPRS_ to be used with the FICO Xpress Libraries and failure to do so will result in an error. An example of their usage is as follows:
XPRSgetintcontrol(prob, XPRS_PRESOLVE, &presolve); printf("The value of PRESOLVE is %d\n", presolve); XPRSsetintcontrol(prob, XPRS_PRESOLVE, 1-presolve); printf("The value of PRESOLVE is now %d\n", 1-presolve);
© 2001-2020 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.