The routine returns a zero on success, and a nonzero if an error occurs.
int CPXcopyobjname (CPXCENVptr env, CPXLPptr lp, const char *objname); |
The pointer to the CPLEX environment as returned by CPXopenCPLEX()
.
A pointer to a CPLEX problem object as returned by CPXcreateprob()
.
A pointer to a string representing the objective name.
status = CPXcopyobjname (env, lp, "Cost"); |