CPXXcallbackprunenode and CPXcallbackprunenode

Instructs CPLEX to prune the current node of the search tree from a callback in the contexts CPX_CALLBACKCONTEXT_RELAXATION and CPX_CALLBACKCONTEXT_BRANCHING.

int  CPXXcallbackprunenode( CPXCALLBACKCONTEXTptr context )

int  CPXcallbackprunenode( CPXCALLBACKCONTEXTptr context )

Description

This routine instructs CPLEX to prune the current node of the search tree. If the routine is invoked in the context CPX_CALLBACKCONTEXT_RELAXATION, any user cut added in the same invocation of the callback is disregarded. If the routine is invoked in the context CPX_CALLBACKCONTEXT_BRANCHING, any child node created in the same invocation of the callback is disregarded.

Tip: Calling this routine is valid only if the callback was invoked in the contexts CPX_CALLBACKCONTEXT_RELAXATION or CPX_CALLBACKCONTEXT_BRANCHING. In all other contexts, this routine returns an error.

Arguments

context

The callback context as passed into the user-written callback function.

Return

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