CPXXordwrite and CPXordwrite

The routine CPXXordwrite/CPXordwrite writes a priority order to an ORD file.

int CPXXordwrite( CPXCENVptrenv, CPXCLPptrlp, char const *filename_str )

int CPXordwrite( CPXCENVptrenv, CPXCLPptrlp, char const *filename_str )

Description

The routine CPXXordwrite/CPXordwrite writes a priority order to an ORD file. If a priority order has been associated with the CPLEX problem object, or the parameter MIP priority order generation (CPXPARAM_MIP_OrderType) is nonzero, or a MIP feasible solution exists, this routine writes the priority order into a file.

Arguments

env
A pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX.
lp
A pointer to a CPLEX problem object as returned by CPXXcreateprob/CPXcreateprob.
filename_str
A character string containing the name of the file to which the ORD information should be written.

Return

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

Example


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

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