CPXXreadcopyorder and CPXreadcopyorder
The routine CPXXreadcopyorder/CPXreadcopyorder reads an ORD file and copies
the priority order information into a CPLEX problem object.
int CPXXreadcopyorder( CPXCENVptr env, CPXLPptr lp, char const * filename_str )
int CPXreadcopyorder( CPXCENVptr env, CPXLPptr lp, char const * filename_str )
Description
The routine CPXXreadcopyorder/CPXreadcopyorder reads an ORD file and copies
the priority order information into a CPLEX problem object. The
MIP priority order switch
(CPXPARAM_MIP_Strategy_Order parameter)
must be set to
CPX_ON (its default value), in order for the priority order to
be used for starting a subsequent optimization.
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
- The name of the file from which the priority order should be read.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs.Example
status = CPXreadcopyorder (env, lp, "myprob.ord");