ILOG CPLEX .NET Reference Manual

IModeler.IfThen Method (IConstraint, IConstraint)

Returns a constraint that if con1 is true, then con2 must also be true.

IConstraint IfThen(
   IConstraint con1,
   IConstraint con2
);

Remarks

In other words, it returns a conditional constraint based on its arguments.

See Also

IModeler Interface | ILOG.Concert Namespace | IModeler.IfThen Overload List