NO FRAMES

CPXgetcallbackindicatorinfo

public int CPXgetcallbackindicatorinfo(CPXCENVptr env, void * cbdata, int wherefrom, int iindex, int whichinfo, void * result_p)
Definition file: cplex.h
Note

This is an advanced routine. Advanced routines typically demand a thorough understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other Callable Library routines instead.

The routine CPXgetcallbackindicatorinfo accesses information about the indicator constraints of the presolved model during MIP callbacks. When there are indicator constraints, ILOG CPLEX creates a presolved model with indicator constraints in canonical form.

 Canonical Form
 (implying variable = { 0 | 1 }) IMPLIES (implied variable) R rhs
 

In that canonical form, rhs stands for righthand side and R stands for one of these relations:

In the original model, you may have indicator constraints in which the implied constraint has two or more variables. For example,

 x = 0 -> 3y + z <= 0
 

In contrast, in the canonical form, the implied constraint can have only one variable; moreover, its coefficient in the constraint must be 1 (one).

The argument which_info can assume one of the following values in a call to CPXgetcallbackindicatorinfo:

Parameters:

env

A pointer to the CPLEX environment, as returned by CPXopenCPLEX.

cbdata

The pointer passed to the user-written callback. This parameter must be the value of cbdata passed to the user-written callback.

wherefrom

An integer value that indicates where the user-written callback was called from. This parameter must be the value of wherefrom passed to the user-written callback.

iindex

An integer, the index of the indicator constraint.

result_p

A generic pointer to a variable of type double or int, representing the value returned by whichinfo.

Returns:

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