CPXXwritebendersannotation and CPXwritebendersannotation

Writes the annotation of the decomposition that CPLEX automatically generated for the model of the CPLEX problem object to the specified file.

int  CPXXwritebendersannotation( CPXCENVptr env, CPXCLPptr lp, char const * filename )

int  CPXwritebendersannotation( CPXCENVptr env, CPXCLPptr lp, char const * filename )

Description

The routine CPXXwritebendersannotation/CPXwritebendersannotation writes the annotation of the decomposition that CPLEX automatically generated for the model of the CPLEX problem object to the specified file.

Tip:

If you specified a Benders decomposition yourself (that is, the decomposition was not automatically generated by CPLEX), this routine does not write the expected file. Instead, when you have specified a Benders decomposition yourself, use the routine CPXXwriteannotations and CPXwriteannotations to write a formatted ANN file of your model.

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
A string containing the name of the ANN file.

Return

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

Example


 status = CPXwritebendersannotation(env, lp, "myprob.ann");