Previous Page: CPXcopynettolp First PageNext Page: CPXcopyorder

CPXcopyobjname


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);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

CPXLPptr lp
A pointer to a CPLEX LP problem object as returned by CPXcreateprob().

char *objname
objname is a pointer to a string representing the objective name.

Example

status = CPXcopyobjname (env, lp, "Cost");
Previous Page: CPXcopynettolp First PageNext Page: CPXcopyorder