Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Joaquim Garcia committed Mar 22, 2024
1 parent 9399959 commit 7be10cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/objective.jl
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ julia> @variable(model, x[1:2]);
julia> @objective(model, Min, x[1]^2 + x[1] * x[2])
x[1]² + x[1]*x[2]
julia> set_objective_coefficient(model, [x[1], x[1]], [x[1], x[2]], [2, 3])
julia> set_objective_coefficients(model, [x[1], x[1]], [x[1], x[2]], [2, 3])
julia> objective_function(model)
2 x[1]² + 3 x[1]*x[2]
Expand Down
4 changes: 2 additions & 2 deletions src/variables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2595,7 +2595,7 @@ y
julia> @constraint(model, con, 2x + 3x + 4y <= 2)
con : 5 x + 4 y ≤ 2
julia> set_normalized_coefficients(con, [x, y], [6, 7])
julia> set_normalized_coefficients([con, con], [x, y], [6, 7])
julia> con
con : 6 x + 7 y ≤ 2
Expand Down Expand Up @@ -2752,7 +2752,7 @@ julia> @variable(model, x[1:2]);
julia> @constraint(model, con, 2x[1]^2 + 3 * x[1] * x[2] + x[2] <= 2)
con : 2 x[1]² + 3 x[1]*x[2] + x[2] ≤ 2
julia> set_normalized_coefficient(con, [x[1], x[1]], [x[1], x[2]], [4, 5])
julia> set_normalized_coefficient([con, con], [x[1], x[1]], [x[1], x[2]], [4, 5])
julia> con
con : 4 x[1]² + 5 x[1]*x[2] + x[2] ≤ 2
Expand Down

0 comments on commit 7be10cc

Please sign in to comment.