CPXXreadcopyannotations and CPXreadcopyannotations

The routine CPXXreadcopyannotations/CPXreadcopyannotations reads a file in the ANN file format and copies the information of all the annotations contained in that file into a CPLEX problem object. Any previously existing annotations in the problem object will first be deleted.

int  CPXXreadcopyannotations( CPXCENVptr env, CPXLPptr lp, char const * filename )

int  CPXreadcopyannotations( CPXCENVptr env, CPXLPptr lp, char const * filename )

Description

The routine CPXXreadcopyannotations/CPXreadcopyannotations reads a file in the format ANN and copies the information of all the annotations in that file into a CPLEX problem object.

Any annotations that previously existed in the CPLEX problem object will first be deleted.

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 = CPXreadcopyannotations(env, lp, "myprob.ann");