Skip to content

Commit 99df73c

Browse files
finish
1 parent 2d06df6 commit 99df73c

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/update_parameters.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ function update_parameters!(model::Optimizer)
288288
_update_quadratic_constraints!(model)
289289
_update_affine_objective!(model)
290290
_update_quadratic_objective!(model)
291-
_update_vector_quadratic_constraints!(model)
292291

293292
# Update parameters and put NaN to indicate that the parameter has been
294293
# updated
@@ -299,6 +298,8 @@ function update_parameters!(model::Optimizer)
299298
end
300299
end
301300

301+
_update_vector_quadratic_constraints!(model)
302+
302303
return
303304
end
304305

test/jump_tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,10 +1279,10 @@ end
12791279
model = Model(SCS.Optimizer)
12801280
@variable(model, x)
12811281
@variable(model, p in MOI.Parameter(1.0))
1282-
@constraint(model, [0, px + -1, 0] in JuMP.PSDCone(3))
1282+
@constraint(model, [[0 (p * x + -1)];[(p * x + -1) 0]] in JuMP.PSDCone())
12831283
optimize!(model)
12841284
@test value(x) 1.0 atol = 1e-5
1285-
set_value(p, 3.0)
1285+
set_parameter_value(p, 3.0)
12861286
optimize!(model)
12871287
@test value(x) 1/3 atol = 1e-5
12881288
end

0 commit comments

Comments
 (0)