Description
The routine CPXmbasewrite() is used to write the most current basis associated with the CPLEX LP problem object to a file. The file is saved in BAS format which corresponds to the industry standard MPS insert format for bases.CPXmbasewrite() is invoked, the current basis is written to a file. This routine does not remove the basis from the problem object.Return Value
The routine returns a zero on success, and a nonzero if an error occurs.Synopsis
int CPXmbasewrite (CPXENVptr env,
CPXLPptr lp,
char *filename);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
CPXLPptr lpA pointer to the CPLEX LP problem object as returned by
CPXcreateprob().
char *filenameA character string containing the name of the file to which the basis should be written.
status = CPXmbasewrite (env, lp, "myprob.bas");