Overview | Group | Tree | Graph | Index | Concepts |
This macro defines a transition cost object, subclass of IloTransitionCostObjectI
, named nameI
. The
argument solver
is the name of the IloSolver
that
performs the extraction. Within the code of the macro, this name will denote
the solver currently performing the extraction. When n
is
greater than 0 (zero), the types and names of the data members must be
supplied as arguments to the macro. Each data member is defined by its type
ti
and a name ai
. The call to the macro must be
followed immediately by the body of the extract member function of the
transition cost object class being defined. It must return a pointer to an
instance of IlcTransitionCostObjectI
that
corresponds to the extracted object. Besides the definition of the class
nameI
, this macro also defines a function named
name
that creates an instance of the class nameI
and that returns an instance of the class IloTransitionCostObject
that points to it.
The use of this macro is the only way to define a new subclass of
IloTransitionCostObjectI
.
Since the argument name
is used to name the transition cost
object class, it is not possible to use the same name for other classes.
For an example on the use of this macro, see information for the similar
macro ILOTRANSITIONTIMEOBJECT0
.
For more information, see Transition Costs.
See Also:
IloTransitionCostObject, IloTransitionCostObjectI, IloTransitionCost