CPXXreadcopybase and CPXreadcopybase
The routine CPXXreadcopybase/CPXreadcopybase reads a basis from a BAS file,
and copies that basis into a CPLEX problem object.
int CPXXreadcopybase( CPXCENVptr env, CPXLPptr lp, char const * filename_str )
int CPXreadcopybase( CPXCENVptr env, CPXLPptr lp, char const * filename_str )
Description
The routine CPXXreadcopybase/CPXreadcopybase reads a basis from a BAS file,
and copies that basis into a CPLEX problem object. The parameter known as the
advanced start switch
(CPXPARAM_Advance)
must be set to 1 (one),
its default value, or 2 (two) in order for the basis to be used
for starting a subsequent optimization.
Arguments
- env
-
A pointer to the CPLEX environment as returned by
CPXXopenCPLEX/CPXopenCPLEX. - lp
-
A pointer to a CPLEX problem object as returned by
CPXXcreateprob/CPXcreateprob. - filename_str
- The name of the file from which the basis should be read.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs.Example
status = CPXreadcopybase (env, lp, "myprob.bas");