Class Or
Represents the operator for the or operation for constraints
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: OPTANO.Modeling.Optimization.Operators
Assembly: Optimization.dll
Syntax
public sealed class Or : OperatorConstraint, IHaveName, IOr
Constructors
Or(Constraint, Constraint)
Initializes a new instance of the Or class.
The constraint1 OR the constraint2 (or both) need to be fulfilled.
Declaration
public Or(Constraint constraint1, Constraint constraint2)
Parameters
| Type | Name | Description |
|---|---|---|
| Constraint | constraint1 | The constraint 1. |
| Constraint | constraint2 | The constraint 2. |
Or(Constraint, IEnumerable<Constraint>)
Initializes a new instance of the Or class.
The constraint OR all constraints in constraintGroup (or both) need to be fulfilled.
Declaration
public Or(Constraint constraint, IEnumerable<Constraint> constraintGroup)
Parameters
| Type | Name | Description |
|---|---|---|
| Constraint | constraint | The constraint. |
| System.Collections.Generic.IEnumerable<Constraint> | constraintGroup | The constraint group. |
Or(IEnumerable<Constraint>, Constraint)
Initializes a new instance of the Or class.
All constraints in constraintGroup OR the constraint (or both) need to be fulfilled.
Declaration
public Or(IEnumerable<Constraint> constraintGroup, Constraint constraint)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<Constraint> | constraintGroup | The constraint group. |
| Constraint | constraint | The constraint. |
Or(IEnumerable<Constraint>, IEnumerable<Constraint>)
Initializes a new instance of the Or class.
All leftConstraints OR all rightConstraints (or both) need to be fulfilled.
Declaration
public Or(IEnumerable<Constraint> leftConstraints, IEnumerable<Constraint> rightConstraints)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<Constraint> | leftConstraints | The left constraints. |
| System.Collections.Generic.IEnumerable<Constraint> | rightConstraints | The right constraints. |