CPXXmultiobjgetobjvalbypriority and CPXmultiobjgetobjvalbypriority

The routine CPXXmultiobjgetobjvalbypriority/CPXmultiobjgetobjvalbypriority accesses the blended objective value for the specified priority after multiobjective optimization.

int   CPXXmultiobjgetobjvalbypriority( CPXCENVptr env, CPXCLPptr lp, CPXDIM priority, double * objval_p)

int   CPXmultiobjgetobjvalbypriority( CPXCENVptr env, CPXCLPptr lp, int priority, double * objval_p)

Description

The routine CPXXmultiobjgetobjvalbypriority/CPXmultiobjgetobjvalbypriority accesses the blended objective value for the specified priority after multiobjective optimization.

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.
priority
The priority for which the blended objective should be returned.
objval_p
A pointer to a double number in which the evaluated objective value should be returned.

Return

The routine returns 0 (zero) if successful and nonzero if an error occurs. Potential errors include: no objective exists with the specified priority; objval_p being NULL; or no solution available.

Example


        status = CPXmultiobjgetobjvalbypriority (env, lp, priority, objval_p);