NO FRAMES

CPXmbasewrite

public int CPXmbasewrite(CPXCENVptr env, CPXCLPptr lp, const char * filename_str)
Definition file: cplex.h

The routine CPXmbasewrite is used to write 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 CPXmbasewrite is invoked, the current basis is written to a file. This routine does not remove the basis from the problem object.

Example

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

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to the CPLEX problem object as returned by CPXcreateprob.

filename_str

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

Returns:

The routine returns zero if successful and nonzero if an error occurs.