MathProgExtensionsover Method

Overload List

over(Set) Creates a sum-over expression for a summation.
C#
Constraint flowBalance =
    forall(j)
    | sum(over(i), x[i, j]) - sum(over(k), x[j, k]) == demand[j];
over(Set, Set) Creates a sum-over expression for a summation.
C#
Objective minTotalCost =
    minimize
    | sum(over(j, i), costFlow[i, j] * x[i, j] + costDesign[i, j] * y[i, j]);
over(Set, Set, Set) Creates a sum-over expression for a summation.
C#
Objective minTotalCost =
    minimize
    | sum(over(j, i, c), costFlow[i, j] * x[i, j, c]);
over(Set, Set, Set, Set) Creates a sum-over expression for a summation.
C#
Objective minTotalCost =
    minimize
    | sum(over(t, j, i, c), costFlow[i, j] * x[i, j, c] * alpha[t]);

See Also