XPRBmipoptimize
XPRBmipoptimize |
Purpose
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:
|
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