CPXXcallbackabort and CPXcallbackabort

Aborts a CPLEX solve from a callback.

int CPXXcallbackabort( CPXCALLBACKCONTEXptrcontext )

int CPXcallbackabort( CPXCALLBACKCONTEXptrcontext )

Description

This routine asks CPLEX to abort the ongoing solve at the next possible point.
Warning: For callbacks in the context CPX_CALLBACKCONTEXT_THREAD_DOWN this routine is a "no-op"; that is, the routine does nothing. A solve cannot be aborted from this context.
Warning: If this routine is called from a thread that currently executes speculative code, and the current context is not CPX_CALLBACKCONTEXT_GLOBAL_PROGRESS, then the request to abort may be ignored. Use CPXXsetterminate and CPXsetterminate if you want to make sure CPLEX terminates even in that case.

Arguments

context

The callback context as passed into the callback function.