XPRSloadbasis


Purpose
Loads a basis from the user's areas.
Synopsis
int XPRS_CC XPRSloadbasis(XPRSprob prob, const int rstatus[], const int cstatus[]);
Arguments
prob 
The current problem.
rstatus 
Integer array of length ROWS containing the basis status of the slack, surplus or artificial variable associated with each row. The status must be one of:
slack, surplus or artificial is non-basic at lower bound;
slack, surplus or artificial is basic;
slack or surplus is non-basic at upper bound.
slack or surplus is super-basic.
cstatus 
Integer array of length COLS containing the basis status of each of the columns in the constraint matrix. The status must be one of:
variable is non-basic at lower bound or superbasic at zero if the variable has no lower bound;
variable is basic;
variable is at upper bound;
variable is super-basic.
Example
This example loads a problem and then reloads a (previously optimized) basis from a similar problem to speed up the optimization:
XPRSreadprob(prob,"problem","");
XPRSloadbasis(prob,rstatus,cstatus);
XPRSminim(prob,"");
Further information
If the problem has been altered since saving an advanced basis, you may want to alter the basis as follows before loading it:
Related topics
XPRSgetbasis, XPRSgetpresolvebasis, XPRSloadpresolvebasis.


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.