NO FRAMES

CPXsolwritesolnpoolall

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

The routine CPXsolwritesolnpoolall writes all the solutions in the solution pool to a file for the selected CPLEX problem object. The routine writes files in SOL format, which is an XML format.

The SOL format is documented in the stylesheet solution.xsl and schema solution.xsd in the include directory of the CPLEX distribution. ILOG CPLEX File Formats also documents this format briefly.

Example

 status = CPXsolwritesolnpoolall (env, lp, "myfile.sol");

See Also:

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

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

filename_str

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

Returns:

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