NO FRAMES

CPXcopyobjname

public int CPXcopyobjname(CPXCENVptr env, CPXLPptr lp, const char * objname_str)
Definition file: 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 character string containing the objective name.

Returns:

The routine returns zero if successful and nonzero if an error occurs.