Overview | Group | Tree | Graph | Index | Concepts |
This macro defines a new choice function (a criterion) in Solver for
setting parameters on the search for a solution; you use this macro if you
have two integer criteria. (The “Any” in its name
refers to the fact that you can use any type
as long as
type
indicates a handle class.)
This macro defines a choice function for objects of the type indicated by
type
. The name of the function will be name
. This
function will take an array (an instance of typeArray
) of
elements (instances of type
). The argument,
criterion
, should be a C++ expression of type
IlcInt
. In that expression, the object to evaluate must be
denoted byvar
. The function named name
returns the index of the object of the type indicated by type
from among those objects for which condition
is
IlcTrue
and that minimizes the expressions
criterion1
and criterion2
. If more than one object
satisfies condition
and minimizes criterion1
, then
criterion2
will be used to distinguish between them. If
condition
is IlcFalse
for all objects, then this
function returns -1.
See Also: