Export (0) Print
Expand All
Expand Minimize
0 out of 2 rated this helpful - Rate this topic

Sum Operator (Solver Foundation)

Solver Foundation 3.0

Evaluates an expression for each possible combination of values of some iterator variables, and returns the sum of the results.

Sum[iters…, expr]
Sum[{p, Products}, x[p]]
Sum[{p, Products}, {s, Sources}, x[p, s]]
Sum[{i, 5}, x[i]]

Sum uses the same iterator forms as Foreach. If no iterators are specified, Sum just evaluates expr.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.