Creates and returns a named constraint forcing the first specified numeric expression to be less than than or equal to the second specified numeric expression.

Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0

Syntax

C#
public virtual IConstraint AddLe(
	INumExpr e1,
	INumExpr e2,
	string name
)
Visual Basic
Public Overridable Function AddLe ( _
	e1 As INumExpr, _
	e2 As INumExpr, _
	name As String _
) As IConstraint

Parameters

e1
Type: ILOG.Concert..::..INumExpr
e2
Type: ILOG.Concert..::..INumExpr
name
Type: System..::..String

Implements

IModeler..::..AddLe(INumExpr, INumExpr, String)

Remarks

The constraint is added to the invoking model; that is, this method modifies the current model.

Do not use this method in a callback to modify the model currently being optimized.

See Also