NO FRAMES

CPXordwrite

int CPXPUBLIC CPXordwrite(CPXCENVptr env, CPXCLPptr lp, const char * filename_str)
Definition file: cplex.h
Include files: cplex.h

The routine CPXordwrite is used to write a priority order to an ORD file. If a priority order has been associated with the CPLEX problem object, or the parameter CPX_PARAM_MIPORDTYPE is nonzero, or a MIP feasible solution exists, this routine writes the priority order into a file.

Example

 status = CPXordwrite (env, lp, "myfile.ord");

See also the example mipex3.c in the standard distribution.

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 ORD information should be written.

Returns:

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