Skip to main content
FRAMES NO FRAMES

IloCustomConstraint

public IloConstraint IloCustomConstraint(IloEnv env, IloPropagatorI * prop)
Definition file: ilcp/cpext.h
Include file: <ilcp/cpext.h>
Creates a modeling constraint from a propagator.

This function creates an IBM® ILOG® Concert Technology constraint from a propagator. You can then add this constraint to a model (instance of IloModel). For example, using the propagator defined in the IloPropagatorI documentation:

       IloPropagatorI * prop = new (env) SignI(x, sgn);
       IloConstraint signCt = IloCustomConstraint(env, prop);
       model.add(signCt);
     

See Also: