CPXXmbasewrite and CPXmbasewrite
The routine CPXXmbasewrite/CPXmbasewrite writes the most
current basis associated with a CPLEX problem object to a file.
int CPXXmbasewrite( CPXCENVptr env, CPXCLPptr lp, char const * filename_str )
int CPXmbasewrite( CPXCENVptr env, CPXCLPptr lp, char const * filename_str )
Description
The routine CPXXmbasewrite/CPXmbasewrite writes the most
current basis associated with a CPLEX problem object to a file. The file is
saved in BAS format which corresponds to the industry standard MPS insert
format for bases.
When CPXXmbasewrite/CPXmbasewrite is invoked, the current basis is
written to a file. This routine does not remove the basis from the problem
object.
Arguments
- env
-
A pointer to the CPLEX environment as returned by
CPXXopenCPLEX/CPXopenCPLEX. - lp
-
A pointer to the CPLEX problem object as returned by
CPXXcreateprob/CPXcreateprob. - filename_str
- A character string containing the name of the file to which the basis should be written.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs.Example
status = CPXmbasewrite (env, lp, "myprob.bas");