Previous Page: CPXgetmethodFirst PageNext Page: CPXgetmipitcnt

CPXgetmipcallbackfunc


Usage

Mixed Integer Users Only

Description

The routine CPXgetmipcallbackfunc() is used to access the user-written callback routine which will be called prior to solving each subproblem in the branch-and-bound tree during the optimization of a mixed integer program. This routine works in the same manner as the CPXgetlpcallbackfunc() routine. It enables the user to create a separate callback function to be called during the solution of mixed integer programming problems.

Return Value

The routine returns a zero on success, and a nonzero if an error occurs.

Synopsis

void CPXgetmipcallbackfunc (CPXENVptr env,
                            int (CPXPUBLIC **callback_p)
                                      (CPXENVptr, void * int, void *),
                            void **cbhandle_p);

Arguments

The arguments of the CPXgetmipcallbackfunc() routine are identical to those of the CPXgetlpcallbackfunc(). The prototype for the callback function is identical as well.

Example

status = CPXgetmipcallbackfunc (env, mycallback, NULL);

See Also

The example in CPXgetcallbackinfo(), as well as example lpex4.c in the CPLEX User's Manual.

Previous Page: CPXgetmethodFirst PageNext Page: CPXgetmipitcnt