Previous Page: CPXmallocFirst PageNext Page: CPXmemcpy

CPXmbasewrite


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.

When 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);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

CPXLPptr lp
A pointer to the CPLEX LP problem object as returned by CPXcreateprob().

char *filename
A character string containing the name of the file to which the basis should be written.

Example

status = CPXmbasewrite (env, lp, "myprob.bas");

Previous Page: CPXmallocFirst PageNext Page: CPXmemcpy