Creates and returns an instance of IConstraint
initialized to represent the constraint e1 == e2,
and added to the invoking instance of IModel.
Namespace: ILOG.Concert
Assembly: ILOG.Concert (in ILOG.Concert.dll) Version: 22.1.0.0
Syntax
| C# |
|---|
IConstraint AddEq( INumExpr e1, INumExpr e2, string name ) |
| Visual Basic |
|---|
Function AddEq ( _ e1 As INumExpr, _ e2 As INumExpr, _ name As String _ ) As IConstraint |
Parameters
- e1
- Type: ILOG.Concert..::..INumExpr
Lefthand side expression of the new equality constraint.
- e2
- Type: ILOG.Concert..::..INumExpr
Righthand side expression of the new equality constraint.
- name
- Type: System..::..String
Name assigned to the new IRange constraint.
Return Value
A new IConstraint object initialized to represent the constraint e1 == e2.
Remarks
The new IConstraint object is assigned the name name.