Purpose
Solve as a discrete problem.
Synopsis
int XPRBmipoptimize(XPRBprob prob, char *alg);
Arguments
prob
|
Reference to a problem.
|
alg
|
Choice of the solution algorithm and options, as a string of flags. If no flag is specified, solve the problem using the default MIP/MIQP algorithm; otherwise, if the argument includes:
"d"
|
solve the problem using the dual simplex algorithm;
|
"p"
|
solve the problem using the primal simplex algorithm;
|
"b"
|
solve the problem using the Newton barrier algorithm;
|
"n"
|
use the network solver (for the initial LP);
|
"l"
|
stop after solving the initial continuous relaxation (using MIP information in presolve);
|
"c"
|
continue a previously interrupted optimization run;
|
|
Return value
0 if function executed successfully, 1 otherwise.
Example
The following code uses the default algorithm to solve
expl2 as a discrete problem.
XPRBprob expl2;
expl2 = XPRBnewprob("example2");
...
XPRBmipoptimize(expl2, "");
Further information
This function selects and starts the Xpress Optimizer MIP/MIQP solution algorithm. The characters indicating the algorithm choice may be combined where it makes sense,
e.g. "
pn. If the matrix loaded in the Optimizer does not correspond to the current state of the specified problem definition it is regenerated automatically prior to the start of the algorithm. Matrix reloading can also be forced by calling
XPRBsync before the optimization. The sense of the optimization (default: minimization) can be changed with function
XPRBsetsense. Before solving a problem, the objective function must be selected with
XPRBsetobj. Note that if you use an incomplete global search you should finish your program with a call to the Optimizer library function
XPRSpostsolve in order to remove all search tree information that has been stored.
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.