Skip to content

Commit

Permalink
Update expressions.md [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimg authored Oct 23, 2024
1 parent 382b2f2 commit 14e2277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/manual/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ julia> @variable(model, x[1:2])
x[1]
x[2]
julia> ex1 = @expression(m, sum(x[1:2]))
julia> ex1 = @expression(model, sum(x[1:2]))
x[1] + x[2]
julia> ex2 = @expression(m, 2 * sum(x[1:2]))
julia> ex2 = @expression(model, 2 * sum(x[1:2]))
2 x[1] + 2 x[2]
julia> add_to_expression!(ex1, ex2)
Expand Down

0 comments on commit 14e2277

Please sign in to comment.