ForAllSetsBitwiseOr Operator

Creates a constraint with forall sets expression on the left-hand-side of the pipe operator; and the constraint expression on the right hand side.

Three examples with different levels of documentation details are provided below.

C#
// no details:
Constraint xyRelation = 
    forall(p)
    | x[p] <= M * y[p];

// with key
Constraint xyRelation =
    key("x-y relation")
    | forall(p)
    | x[p] <= M * y[p];

// with key and definition
Constraint xyRelation =
    key("x-y relation")
    | "capacity of a location can be used only if it is opened"
    | forall(p)
    | x[p] <= M * y[p];

Definition

Namespace: Orx.MathProg
Assembly: Orx.MathProg (in Orx.MathProg.dll) Version: 1.0.0
C#
public static Constraint operator |(
	ForAllSets forAllSets,
	ConstraintExpr constrExpr
)

Parameters

forAllSets  ForAllSets
Forall sets of the constraint.
constrExpr  ConstraintExpr
Constraint expression.

Return Value

Constraint

See Also