Creates and returns a named constraint initialized to represent the
equality of the two specified expressions.
Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
public virtual IConstraint AddEq( INumExpr e1, INumExpr e2, string name ) |
| Visual Basic |
|---|
Public Overridable Function AddEq ( _ 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..::..AddEq(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.