Previous Page: CPXdualwriteFirst PageNext Page: CPXfclose

CPXembwrite


Description

The routine CPXembwrite() is used to write out the network embedded in the selected problem object. The file is written in MPS format. The specific network extracted depends on the current setting of the CPX_PARAM_NETFIND parameter.

Return Value

The routine returns a zero on success, and a nonzero if an error occurs.

Synopsis

int CPXembwrite (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 a CPLEX LP problem object as returned by CPXcreateprob().

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

Example

status = CPXembwrite (env, lp, "myfile.emb");

Previous Page: CPXdualwriteFirst PageNext Page: CPXfclose