This functions helps to create dynamic sum expression based on external variables. Should only be used within other 'ompr' functions.

sum_expr(expr, ...)

## Arguments

expr an expression that can be expanded to a sum bind variables in expr using dots. See examples.

## Value

the expanded sum as an AST

add_constraint
set_objective
# create a sum from x_1 to x_10