CPXdualwrite


Description

The routine CPXdualwrite() is used to write a dual formulation of the current CPLEX problem object. MPS format is used. This function can only be applied to a linear program; it generates an error for other problem types.

Return Value

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

Synopsis

  int CPXdualwrite (CPXCENVptr env,
                    CPXCLPptr lp,
                    const char *filename_str,
                    double *objshift_p);

Arguments

CPXCENVptr env

The pointer to the CPLEX environment as returned by CPXopenCPLEX().

CPXCLPptr lp

A pointer to a CPLEX problem object as returned by CPXcreateprob().

const char *filename_str

A character string containing the name of the file to which the dual problem should be written.

double *objshift_p

A pointer to a variable of type double to hold the change in the objective function resulting from the removal of fixed variables in the primal.

Example

  status = CPXdualwrite (env, lp, "myfile.dua", &objshift);


Previous Page: CPXdualopt Return to Top Next Page: CPXembwrite