From 7be10ccb4d6bee3c10807b54c1b7ac71da9dbacb Mon Sep 17 00:00:00 2001 From: Joaquim Garcia Date: Fri, 22 Mar 2024 19:41:54 -0300 Subject: [PATCH] fix docs --- src/objective.jl | 2 +- src/variables.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/objective.jl b/src/objective.jl index 9623d48a742..d29ad28c11d 100644 --- a/src/objective.jl +++ b/src/objective.jl @@ -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] diff --git a/src/variables.jl b/src/variables.jl index 76c6eac65b5..01ee8d09898 100644 --- a/src/variables.jl +++ b/src/variables.jl @@ -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 @@ -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