Description
The routine CPXpreslvwrite() is used to write a presolved version of the problem to a file. The file is saved in binary format, and can be read using the routine CPXreadcopyprob().CPXpreslvwrite() may not be the same as the optimal objective of the original problem. The objoff_p parameter can be used to reconcile this difference.Return Value
The routine returns a zero on success, and a nonzero if an error occurs.Synopsis
int CPXpreslvwrite (CPXENVptr env,
CPXLPptr lp,
char *filename,
double *objoff_p);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
CPXLPptr lpA pointer to a CPLEX LP problem object as returned by
CPXcreateprob().
char *filenameA character string containing the name of the file to which the presolved problem should be written.
double *objoff_pA pointer to a double precision variable that is used to hold the objective value difference between the original problem and the presolved problem.
status = CPXpreslvwrite (env, lp, "myfile.pre", &objoff);