Problem Solving
With a problem loaded into a problem pointer the user can run the optimization algorithms on the problem to solve it.
The two main commands to run the optimization algorithms on a problem are XPRSmipoptimize(MIPOPTIMIZE) and XPRSlpoptimize(LPOPTIMIZE) depending on whether the problem needs to be solved with or without global entities. The XPRSlpoptimize function will solve LPs, QPs and QCQPs or the initial continuous relaxation of a MIP problem, depending on the type of problem loaded in the problem pointer. The XPRSmipoptimize function will solve MIPs, MIQPs and MIQCQPs.
For problems with global entities the Optimizer can be told to stop after having solved the initial relaxation by passing the 'l' flag to the XPRSmipoptimize function. The remaining MIP search can be run by calling the XPRSmipoptimize function without the 'l' flag.
{ XPRSprob prob; XPRScreateprob(&prob); XPRSsetlogfile(prob, "logfile.log"); XPRSreadprob(prob, "hpw15", ""); XPRSmipoptimize(prob, ""); XPRSdestroyprob(prob); }
© 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.