CPXcopyobjname


Description

The routine CPXcopyobjname() copies a name for the objective function into a CPLEX problem object. An 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 (CPXCENVptr env,
                      CPXLPptr lp,
                      const char *objname);

Arguments

CPXCENVptr env

The pointer to the CPLEX environment as returned by CPXopenCPLEX().

CPXLPptr lp

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

const char *objname

A pointer to a string representing the objective name.

Example

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


Previous Page: CPXcopynettolp Return to Top Next Page: CPXcopyorder