CPXXmodelasstcallbackgetfunc and CPXmodelasstcallbackgetfunc

Get the currently installed modeling assistance callback.

int  CPXXmodelasstcallbackgetfunc( CPXCENVptr env, CPXCLPptr lp, CPXMODELASSTCALLBACKFUNC **callback_p, void ** cbhandle_p )

int  CPXmodelasstcallbackgetfunc( CPXCENVptr env, CPXCLPptr lp, CPXMODELASSTCALLBACKFUNC **callback_p, void ** cbhandle_p )

Description

This routine gets the currently installed modeling assistance callback as last set by CPXXmodelasstcallbacksetfunc and CPXmodelasstcallbacksetfunc.

Arguments

env

A pointer to the CPLEX environment as returned by CPXXopenCPLEX.

lp

A pointer to a CPLEX problem object as returned for example by CPXXcreateprob.

callback_p

Pointer to a memory location where the routine will store the callback function of the currently installed modeling assistance callback. Upon successful return, this memory location will contain the callback value set by the last call to CPXXmodelasstcallbacksetfunc and CPXmodelasstcallbacksetfunc (or NULL if that routine has not yet been called).

cbhandle_p

Pointer to a memory location where the routine will store the user handle currently installed. Upon successful return, this memory location will contain the cbhandle value set by the last call to CPXXmodelasstcallbacksetfunc and CPXmodelasstcallbacksetfunc (or NULL if that routine has not yet been called).

Return

The routine returns 0 (zero) if successful and nonzero if an error occurs.

Example