IBM ILOG Solver User's Manual > Extending the Library > Writing a Constraint: Allocating Frequencies > Writing a constraint: Frequency allocation > Using the constraint wrapper |
Using the constraint wrapper |
INDEX
![]() |
You use the macro ILOCPCONSTRAINTWRAPPER
to wrap an existing instance of IlcConstraint
when you want to use it within Concert Technology model objects. You must use the member function IloCPConstraintI::use
to force extraction of an extractable or an array of extractables:
ILOCPCONSTRAINTWRAPPER1(IloFreqConstraint, solver, IloIntVarArray, _vars) { use(solver, _vars); return IlcFreqConstraint(solver, solver.getIntVarArray(_vars)); } |
For more information on wrapping constraints for use with Concert Technology, see the documentation for the macro ILOCPCONSTRAINTWRAPPER
and the class IloCPConstraintI
in the IBM ILOG Solver Reference Manual.
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |