Skip to content

Commit

Permalink
Update aff_expr.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimg authored Oct 23, 2024
1 parent 14e2277 commit 6373d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aff_expr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -523,10 +523,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 6373d59

Please sign in to comment.