public static class MathProgExtensions| maximize |
Creates the 'maximization' direction for defining an objective function.
It is followed by a pipe operator and an expression to create the objective function. C# |
| minimize |
Creates the 'minimization' direction for defining an objective function.
It is followed by a pipe operator and an expression to create the objective function. C# |
| minimize0 |
Creates a dummy objective function, 'minimize 0' so to say.
This is a shorthand for C# |
| forall(Set) |
Creates a forall sets expression for a constraint.
C# |
| forall(Set, Set) |
Creates a forall sets expression for a constraint.
C# |
| forall(Set, Set, Set) |
Creates a forall sets expression for a constraint.
C# |
| forall(Set, Set, Set, Set) |
Creates a forall sets expression for a constraint.
C# |
| HasElements(SetBuilderDependsDimension1, FuncInt32, IEnumerableInt32, String) |
Finalizes the set builder and returns the resulting set.
The set generates elements in [0, getIndicesByDependsSet(i)); where i is the value of the dependent set. Consider the following example. C# Here, set i has indices { 0, 1, 2, 3 }. Set j, on the other hand, depends on set i. In other words, it will generate different elements for different values of i:
|
| HasElements(SetBuilderDependsDimension2, FuncInt32, Int32, IEnumerableInt32, String) |
Finalizes the set builder and returns the resulting set.
The set generates elements in [0, getIndicesByDependsSets(i, j)); where i and j are the values of the dependent sets. Consider the following example. C# Here, set i has indices { 0, 1, 2, 3 }. Set j, on the other hand, depends on set i. In other words, it will generate different elements for different values of i:
|
| HasElementsUntil |
Finalizes the set builder and returns the resulting set.
The set generates elements in [0, getUntil(i)); where i is the value of the dependent set. For instance, consider the following sets. C# Set t2 has elements { 0, 1, 2, 3 }. Set t1 depends on t2; hence, generates different indices for different values of t2:
|
| HasSameElementsExceptParent |
Finalizes the set builder and returns the resulting set.
The set generates exactly the elements of the dependent set except for its value. For instance, consider the following sets. C# Set i has elements { 0, 1, 2 }. Set j depends on set i; hence, has different elements for different values of i:
|
| HasValue(ParameterBuilderIndicesDimension0, Double, String) |
Finalizes the parameter builder and returns the resulting 0-dimensional parameter ParD0.
The resulting parameter has the given value. |
| HasValue(ParameterBuilderIndicesDimension0, FuncDouble, String) |
Finalizes the parameter builder and returns the resulting 0-dimensional parameter ParD0.
Value of the resulting parameter will be obtained by the given function. |
| HasValues(ParameterBuilderIndicesDimension1, FunVec1Double, String) |
Finalizes the parameter builder and returns the resulting 1-dimensional parameter ParD1.
The resulting parameter has values defined by the given 1-dimensional functional vector. |
| HasValues(ParameterBuilderIndicesDimension2, FunVec2Double, String) |
Finalizes the parameter builder and returns the resulting 2-dimensional parameter ParD2.
The resulting parameter has values defined by the given 2-dimensional functional vector. |
| HasValues(ParameterBuilderIndicesDimension3, FunVec3Double, String) |
Finalizes the parameter builder and returns the resulting 3-dimensional parameter ParD3.
The resulting parameter has values defined by the given 3-dimensional functional vector. |
| HasValues(ParameterBuilderIndicesDimension4, FunVec4Double, String) |
Finalizes the parameter builder and returns the resulting 4-dimensional parameter ParD4.
The resulting parameter has values defined by the given 4-dimensional functional vector. |
| IsBetweenZeroAndOne(VariableBuilderTypeDimension0) |
Finalizes the variable builder and returns the resulting 0-dimensional variable VarD0.
The resulting variable is unboundd; i.e., in [0, 1]. |
| IsBetweenZeroAndOne(VariableBuilderTypeDimension1) |
Finalizes the variable builder and returns the resulting 1-dimensional variable VarD1.
The resulting variable is unboundd; i.e., in [0, 1]. |
| IsBetweenZeroAndOne(VariableBuilderTypeDimension2) |
Finalizes the variable builder and returns the resulting 2-dimensional variable VarD2.
The resulting variable is unboundd; i.e., in [0, 1]. |
| IsBetweenZeroAndOne(VariableBuilderTypeDimension3) |
Finalizes the variable builder and returns the resulting 3-dimensional variable VarD3.
The resulting variable is unboundd; i.e., in [0, 1]. |
| IsBetweenZeroAndOne(VariableBuilderTypeDimension4) |
Finalizes the variable builder and returns the resulting 4-dimensional variable VarD4.
The resulting variable is unboundd; i.e., in [0, 1]. |
| IsBinary(VariableBuilderIndicesDimension0) |
Finalizes the variable builder and returns the resulting 0-dimensional variable VarD0.
The resulting variable is binary (0/1) which can take either value 0 or 1. |
| IsBinary(VariableBuilderIndicesDimension1) |
Finalizes the variable builder and returns the resulting 1-dimensional variable VarD1.
The resulting variable is binary (0/1) which can take either value 0 or 1. |
| IsBinary(VariableBuilderIndicesDimension2) |
Finalizes the variable builder and returns the resulting 2-dimensional variable VarD2.
The resulting variable is binary (0/1) which can take either value 0 or 1. |
| IsBinary(VariableBuilderIndicesDimension3) |
Finalizes the variable builder and returns the resulting 3-dimensional variable VarD3.
The resulting variable is binary (0/1) which can take either value 0 or 1. |
| IsBinary(VariableBuilderIndicesDimension4) |
Finalizes the variable builder and returns the resulting 4-dimensional variable VarD4.
The resulting variable is binary (0/1) which can take either value 0 or 1. |
| IsNonnegative(VariableBuilderTypeDimension0) |
Finalizes the variable builder and returns the resulting 0-dimensional variable VarD0.
The resulting variable is nonnegative; i.e., in [0, infinity). |
| IsNonnegative(VariableBuilderTypeDimension1) |
Finalizes the variable builder and returns the resulting 1-dimensional variable VarD1.
The resulting variable is nonnegative; i.e., in [0, infinity). |
| IsNonnegative(VariableBuilderTypeDimension2) |
Finalizes the variable builder and returns the resulting 2-dimensional variable VarD2.
The resulting variable is nonnegative; i.e., in [0, infinity). |
| IsNonnegative(VariableBuilderTypeDimension3) |
Finalizes the variable builder and returns the resulting 3-dimensional variable VarD3.
The resulting variable is nonnegative; i.e., in [0, infinity). |
| IsNonnegative(VariableBuilderTypeDimension4) |
Finalizes the variable builder and returns the resulting 4-dimensional variable VarD4.
The resulting variable is nonnegative; i.e., in [0, infinity). |
| IsNonpositive(VariableBuilderTypeDimension0) |
Finalizes the variable builder and returns the resulting 0-dimensional variable VarD0.
The resulting variable is nonpositive; i.e., in (-infinity, 0]. |
| IsNonpositive(VariableBuilderTypeDimension1) |
Finalizes the variable builder and returns the resulting 1-dimensional variable VarD1.
The resulting variable is nonpositive; i.e., in (-infinity, 0]. |
| IsNonpositive(VariableBuilderTypeDimension2) |
Finalizes the variable builder and returns the resulting 2-dimensional variable VarD2.
The resulting variable is nonpositive; i.e., in (-infinity, 0]. |
| IsNonpositive(VariableBuilderTypeDimension3) |
Finalizes the variable builder and returns the resulting 3-dimensional variable VarD3.
The resulting variable is nonpositive; i.e., in (-infinity, 0]. |
| IsNonpositive(VariableBuilderTypeDimension4) |
Finalizes the variable builder and returns the resulting 4-dimensional variable VarD4.
The resulting variable is nonpositive; i.e., in (-infinity, 0]. |
| IsUnbounded(VariableBuilderTypeDimension0) |
Finalizes the variable builder and returns the resulting 0-dimensional variable VarD0.
The resulting variable is unboundd; i.e., in (-infinity, infinity). |
| IsUnbounded(VariableBuilderTypeDimension1) |
Finalizes the variable builder and returns the resulting 1-dimensional variable VarD1.
The resulting variable is unboundd; i.e., in (-infinity, infinity). |
| IsUnbounded(VariableBuilderTypeDimension2) |
Finalizes the variable builder and returns the resulting 2-dimensional variable VarD2.
The resulting variable is unboundd; i.e., in (-infinity, infinity). |
| IsUnbounded(VariableBuilderTypeDimension3) |
Finalizes the variable builder and returns the resulting 3-dimensional variable VarD3.
The resulting variable is unboundd; i.e., in (-infinity, infinity). |
| IsUnbounded(VariableBuilderTypeDimension4) |
Finalizes the variable builder and returns the resulting 4-dimensional variable VarD4.
The resulting variable is unboundd; i.e., in (-infinity, infinity). |
| key |
Creates a symbol key for an objective function or a constraint.
See below three ways to create a flow balance constraint with different levels of details. C# Similarly, keys and definitions can be included in or omitted from objective function definitions. C# |
| over(Set) |
Creates a sum-over expression for a summation.
C# |
| over(Set, Set) |
Creates a sum-over expression for a summation.
C# |
| over(Set, Set, Set) |
Creates a sum-over expression for a summation.
C# |
| over(Set, Set, Set, Set) |
Creates a sum-over expression for a summation.
C# |
| Parameter |
Initiates a parameter builder for different dimensions (ParD0, ParD1, ParD2, etc.).
Builder pattern is used for creating all mathematical symbols, to make creating rather complicated variants more convenient. C# |
| Set |
Initiates a Set builder.
Builder pattern is used for creating all mathematical symbols, to make creating rather complicated variants more convenient. Some example set constructions are given below: C# |
| sum | Creates a summation with the given sum over sets expression and linear expression. |
| Variable |
Initiates a variable builder for different dimensions (VarD0, VarD1, VarD2, etc.).
Builder pattern is used for creating all mathematical symbols, to make creating rather complicated variants more convenient. C# |
| WithBounds(VariableBuilderTypeDimension0, Double, Double) |
Finalizes the variable builder and returns the resulting 0-dimensional variable VarD0.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension0, Double, FuncDouble) |
Finalizes the variable builder and returns the resulting 0-dimensional variable VarD0.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension0, FuncDouble, Double) |
Finalizes the variable builder and returns the resulting 0-dimensional variable VarD0.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension0, FuncDouble, FuncDouble) |
Finalizes the variable builder and returns the resulting 0-dimensional variable VarD0.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension1, FunVec1Double, FunVec1Double) |
Finalizes the variable builder and returns the resulting 1-dimensional variable VarD1.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension1, FunVec1Double, Double) |
Finalizes the variable builder and returns the resulting 1-dimensional variable VarD1.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension1, Double, FunVec1Double) |
Finalizes the variable builder and returns the resulting 1-dimensional variable VarD1.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension1, Double, Double) |
Finalizes the variable builder and returns the resulting 1-dimensional variable VarD1.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension2, FunVec2Double, FunVec2Double) |
Finalizes the variable builder and returns the resulting 2-dimensional variable VarD2.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension2, FunVec2Double, Double) |
Finalizes the variable builder and returns the resulting 2-dimensional variable VarD2.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension2, Double, FunVec2Double) |
Finalizes the variable builder and returns the resulting 2-dimensional variable VarD2.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension2, Double, Double) |
Finalizes the variable builder and returns the resulting 2-dimensional variable VarD2.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension3, FunVec3Double, FunVec3Double) |
Finalizes the variable builder and returns the resulting 3-dimensional variable VarD3.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension3, FunVec3Double, Double) |
Finalizes the variable builder and returns the resulting 3-dimensional variable VarD3.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension3, Double, FunVec3Double) |
Finalizes the variable builder and returns the resulting 3-dimensional variable VarD3.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension3, Double, Double) |
Finalizes the variable builder and returns the resulting 3-dimensional variable VarD3.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension4, FunVec4Double, FunVec4Double) |
Finalizes the variable builder and returns the resulting 4-dimensional variable VarD4.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension4, FunVec4Double, Double) |
Finalizes the variable builder and returns the resulting 4-dimensional variable VarD4.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension4, Double, FunVec4Double) |
Finalizes the variable builder and returns the resulting 4-dimensional variable VarD4.
The resulting variable has the given lower and upper bounds. |
| WithBounds(VariableBuilderTypeDimension4, Double, Double) |
Finalizes the variable builder and returns the resulting 4-dimensional variable VarD4.
The resulting variable has the given lower and upper bounds. |