CPXMODELASSTCALLBACKFUNC

Prototype for modeling assistance callback functions

typedef int CPXPUBLIC CPXMODELASSTCALLBACKFUNC( int issueid, const char * message, void * userhandle )

Arguments

issueid

The modeling assistance issue ID. See Modeling information codes by number in the CPLEX Callable Library (C API).

message

The modeling assistance warning message.

userhandle

The userhandle argument that was passed to CPXXmodelasstcallbacksetfunc and CPXmodelasstcallbacksetfunc when the callback was registered.

Return

The routine returns 0 (zero) if successful and nonzero if an error occurs. Any value different from zero will result in an ungraceful exit of CPLEX (usually with CPXERR_CALLBACK). Note that the actual value returned is not propagated up the call stack. The only thing that CPLEX checks is whether the returned value is zero or not.

Do not use a non-zero return value to stop optimization in case there is no error. Use CPXXsetterminate and CPXsetterminate for that purpose.

See also