Overview | Group | Tree | Graph | Index | Concepts |
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.
CPXdualwrite
may not be the same as the optimal
objective of the primal problem. The objshift_p
parameter can
be used to reconcile this difference.Example
status = CPXdualwrite (env, lp, "myfile.dua", &objshift);
env | A pointer to the CPLEX environment as returned by |
lp | A pointer to a CPLEX problem object as returned by |
filename_str | A character string containing the name of the file to which the dual problem should be written. |
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. |