Description
The routine CPXcopyobjname() copies a name for the objective function into a CPLEX LP problem object. The argument to CPXcopyobjname() defines the objective name.Return Value
The routine returns a zero on success, and a nonzero if an error occurs.Synopsis
int CPXcopyobjname (CPXENVptr env,
CPXLPptr lp,
char *objname);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
CPXLPptr lpA pointer to a CPLEX LP problem object as returned by
CPXcreateprob().
char *objname
objname is a pointer to a string representing the objective name.
status = CPXcopyobjname (env, lp, "Cost");