CPXXmultiobjgetlonginfo and CPXmultiobjgetlonginfo
The routine CPXXmultiobjgetlonginfo/CPXmultiobjgetlonginfo accesses
long-valued information about the solution of the specified subproblem
during the last multi-objective optimization.
int CPXXmultiobjgetlonginfo( CPXCENVptr env, CPXCLPptr lp, CPXDIM subprob, CPXLONG * info_p, int what )
int CPXmultiobjgetlonginfo( CPXCENVptr env, CPXCLPptr lp, int subprob, long * info_p, int what )
Description
The routine CPXXmultiobjgetlonginfo/CPXmultiobjgetlonginfo accesses
long-valued information about the solution of the specified subproblem
during the last multi-objective optimization.
The specified subproblem must have been solved during the last multi-objective optimization, or no information can be retreived for it.
The info values are returned in the variable
long pointed to by the argument
info_p.
They correspond to an optimization of a single LP or MIP subproblem
rather than the whole multiobjective problem, and they therefore consist
of the same return values associated with the optimization of a single
objective LP or MIP problem.
For documentation of the info symbols (possible values of the
what argument), see the CPX_MULTIOBJ_... symbols on the page,
Multiobjective optimization in the CPLEX Callable Library (C API),
in the Callable Library (C API) Reference Manual..
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. - subprob
- An integer value specifying the subproblem of the multi-objective subproblem for which the information is requested.
- info_p
-
A pointer to an
longvariable in which the requested info value is to be stored. - what
- A symbolic constant specifying the info value to be retrieved.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs.
Example
status = CPXmultiobjgetlonginfo (env, lp, 1, &itcnt, CPX_MULTIOBJ_ITCNT);