CPXXchgobjoffset and CPXchgobjoffset

The routine CPXXchgobjoffset/CPXchgobjoffset changes the constant offset of the objective function for a problem.

int  CPXXchgobjoffset( CPXCENVptr env, CPXLPptr lp, double offset )

int  CPXchgobjoffset( CPXCENVptr env, CPXLPptr lp, double offset )

Description

The routine CPXXchgobjoffset/CPXchgobjoffset changes the constant offset of the objective function for a problem.

Arguments

env
A pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX.
lp
A pointer to a CPLEX problem object as returned by CPXXcreateprob/CPXcreateprob.
offset
A double value that specifies the new constant objective offset of the problem.

Return

The routine returns 0 (zero) if successful or an error code otherwise.

Example


CPXchgobjoffset (env, lp, 3.14);