ILOG CPLEX .NET Reference Manual

CplexModeler.IfThen Method (IConstraint, IConstraint, String)

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

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

Implements

IModeler.IfThen

Remarks

In other words, it returns a conditional constraint based on its arguments. Also assigns the string name as the name of the returned constraint. See {@link ILOG.Concert.IMPModeler#ifThen}

See Also

CplexModeler Class | ILOG.CPLEX Namespace | CplexModeler.IfThen Overload List