Macro ILOCLIKECOMPARATOR0
Definition file: ilsolver/iloselector.h
ILOCLIKECOMPARATOR0(comparatorName, tx, nx1, nx2)
ILOCLIKECOMPARATOR1(comparatorName, tx, nx1, nx2, td, nd)
ILOCLIKECOMPARATOR2(comparatorName, tx, nx1, nx2, td1, nd1, td2, nd2)
ILOCLIKECOMPARATOR3(comparatorName, tx, nx1, nx2, td1, nd1, td2, nd2, td3, nd3)
ILOCLIKECOMPARATOR4(comparatorName, tx, nx1, nx2, td1, nd1, td2, nd2, td3, nd3, td4, nd4)
ILOCLIKECOMPARATOR5(comparatorName, tx, nx1, nx2, td1, nd1, td2, nd2, td3, nd3, td4, nd4, td5, nd5)
ILOCLIKECOMPARATOR6(comparatorName, tx, nx1, nx2, td1, nd1, td2, nd2, td3, nd3, td4, nd4, td5, nd5, td6, nd6)
ILOCLIKECOMPARATOR7(comparatorName, tx, nx1, nx2, td1, nd1, td2, nd2, td3, nd3, td4, nd4, td5, nd5, td6, nd6, td7, nd7)
ILOCTXCLIKECOMPARATOR0(comparatorName, tx, nx1, nx2, tu, nu)
ILOCTXCLIKECOMPARATOR1(comparatorName, tx, nx1, nx2, tu, nu, td, nd)
ILOCTXCLIKECOMPARATOR2(comparatorName, tx, nx1, nx2, tu, nu, td1, nd1, td2, nd2)
ILOCTXCLIKECOMPARATOR3(comparatorName, tx, nx1, nx2, tu, nu, td1, nd1, td2, nd2, td3, nd3)
ILOCTXCLIKECOMPARATOR4(comparatorName, tx, nx1, nx2, tu, nu, td1, nd1, td2, nd2, td3, nd3, td4, nd4)
ILOCTXCLIKECOMPARATOR5(comparatorName, tx, nx1, nx2, tu, nu, td1, nd1, td2, nd2, td3, nd3, td4, nd4, td5, nd5)
ILOCTXCLIKECOMPARATOR6(comparatorName, tx, nx1, nx2, tu, nu, td1, nd1, td2, nd2, td3, nd3, td4, nd4, td5, nd5, td6, nd6)
ILOCTXCLIKECOMPARATOR7(comparatorName, tx, nx1, nx2, tu, nu, td1, nd1, td2, nd2, td3, nd3, td4, nd4, td5, nd5, td6, nd6, td7, nd7)
The ILOCLIKECOMPARATORi
macros can be used to generate
comparators over arbitrary objects.
The macros take four mandatory parameters:
- The name of the comparator to generate
- The type of the objects to compare
- The name of the first object to compare
- The name of the second object to compare
After this, depending on the macro used, optional parameters can be
provided as argument pairs of type and name.
The body of the macro must return an integer
which is equal to -1
if the comparator's left-hand side
is better than its right-hand side, to 1
if the comparator's left-hand side
is worse than its right-hand side, and to 0
otherwise.
The macro ILOCTXCLIKECOMPARATORi
can be used to
handle a user-given context (name nu
and type
tu
) at comparison time.
See macro ILOCOMPARATOR0
for an
example of comparators defined using a macro.
For more information, see
Selectors.