Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of Σ is not consistent #3533

Closed
odow opened this issue Oct 4, 2023 · 1 comment
Closed

Use of Σ is not consistent #3533

odow opened this issue Oct 4, 2023 · 1 comment

Comments

@odow
Copy link
Member

odow commented Oct 4, 2023

Someone complained (rightly) about:

julia> model = Model();

julia> @variable(model, x[1:2])
2-element Vector{VariableRef}:
 x[1]
 x[2]

julia> @expression(model, Σ(x[i] for i in 1:2))
x[1] + x[2]

julia> @expression(model, Σ(x))
ERROR: UndefVarError: `Σ` not defined
Stacktrace:
 [1] macro expansion
   @ ~/.julia/packages/MutableArithmetics/cnvbo/src/rewrite.jl:321 [inlined]
 [2] macro expansion
   @ ~/.julia/dev/JuMP/src/macros.jl:717 [inlined]
 [3] top-level scope
   @ REPL[5]:1

cc @dourouc05

@odow
Copy link
Member Author

odow commented Oct 9, 2023

@dourouc05 you should tell the person not to use the un-documented Σ feature 😄

@odow odow closed this as completed Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant