NO FRAMES

CPXcopyobjname

int CPXPUBLIC CPXcopyobjname(CPXCENVptr env, CPXLPptr lp, const char * objname_str)
Definition file: cplex.h
Include files: cplex.h

The routine CPXcopyobjname copies a name for the objective function into a CPLEX problem object. An argument to CPXcopyobjname defines the objective name.

Example

 status = CPXcopyobjname (env, lp, "Cost");
 

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX problem object as returned by CPXcreateprob.

objname_str

A pointer to a string representing the objective name.

Returns:

The routine returns zero on success and nonzero if an error occurs.