ILOG CPLEX .NET Reference Manual

IModeler.IfThen Method (IConstraint, IConstraint, String)

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

IConstraint IfThen(
   IConstraint con1,
   IConstraint con2,
   string name
);

Remarks

In other words, it returns a conditional constraint based on its arguments. It also assigns the string name as the name of the returned constraint.

See Also

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