Skip to content

Commit ce21047

Browse files
committed
Update
1 parent 4ef089b commit ce21047

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/MOI_wrapper.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,16 +377,15 @@ function test_vector_nonlinear_oracle()
377377
dimension=2,
378378
l=[1.0, 3.0],
379379
u=[2.0, 3.5],
380-
eval_f=(ret, x) -> (ret .= x .^2),
380+
eval_f=(ret, x) -> (ret .= x .^ 2),
381381
jacobian_structure=[(1, 1), (2, 2)],
382382
eval_jacobian=(ret, x) -> (ret .= 2 .* x),
383383
)
384384
model = KNITRO.Optimizer()
385385
MOI.set(model, MOI.Silent(), true)
386386
x = MOI.add_variables(model, 2)
387387
MOI.add_constraint.(model, x, MOI.GreaterThan(0.0))
388-
MOI.optimize!(model)
389-
c = MOI.add_constraint(model, MOI.VectorOfVariables(x), set)
388+
MOI.add_constraint(model, MOI.VectorOfVariables(x), set)
390389
MOI.optimize!(model)
391390
@test MOI.get(model, MOI.TerminationStatus()) == MOI.LOCALLY_SOLVED
392391
x_sol = MOI.get(model, MOI.VariablePrimal(), x)

0 commit comments

Comments
 (0)