Skip to content

Commit

Permalink
Update aff_expr.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Oct 23, 2024
1 parent fabed8d commit ca0afb8
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(model, sum(x[1:2]))
julia> @expression(model, ex1, sum(x))
x[1] + x[2]
julia> ex2 = @expression(model, 2 * sum(x[1:2]))
julia> @expression(model, ex2, 2 * sum(x))
2 x[1] + 2 x[2]
julia> add_to_expression!(ex1, ex2)
Expand Down

0 comments on commit ca0afb8

Please sign in to comment.