SetBuilderKeyHasElements(IEnumerableInt32, String) Method

Finalizes the set builder and returns the resulting set.

The set generates elements in indices.

For instance, the following set:

C#
int[] highPriorityIndices = new int[] { 1, 4, 9 };
Set p = Set("p").Represents("prioritized projects").HasElements(highPriorityIndices);
has elements { 1, 4, 9 }.

Definition

Namespace: Orx.MathProg
Assembly: Orx.MathProg (in Orx.MathProg.dll) Version: 1.0.0
C#
public Set HasElements(
	IEnumerable<int> indices,
	string expression = ""
)

Parameters

indices  IEnumerableInt32
Indices/elements of the set.
expression  String  (Optional)
Element generator expression.

Return Value

Set

See Also