Initializing help system before first use

XPRBlpoptimize

XPRBlpoptimize


Purpose
Solve as a continuous problem.
Synopsis
int XPRBlpoptimize(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 LP/QP 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;
"c" 
continue a previously interrupted optimization run;
Return value
0 if function executed successfully, 1 otherwise.
Example
The following code uses the primal simplex algorithm to solve expl2 as a continuous problem.
XPRBprob expl2;
expl2 = XPRBnewprob("example2");
 ...
XPRBlpoptimize(expl2, "p");
Further information
This function selects and starts the Xpress Optimizer LP/QP 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.
Related topics