Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Dec 3, 2024
1 parent 5917b7c commit e519960
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Test/test_nonlinear.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1824,7 +1824,9 @@ function test_nonlinear_with_scalar_quadratic_function_with_off_diag(
for (a, b, status) in test_cases
MOI.empty!(model)
x, _ = MOI.add_constrained_variable(model, MOI.EqualTo(T(2)))
MOI.set(model, MOI.VariablePrimalStart(), x, T(2))
y, _ = MOI.add_constrained_variable(model, MOI.EqualTo(T(3)))
MOI.set(model, MOI.VariablePrimalStart(), y, T(3))
g = T(a) * x * y
@test g isa MOI.ScalarQuadraticFunction{T}
f = MOI.ScalarNonlinearFunction(:sqrt, Any[g])
Expand Down

0 comments on commit e519960

Please sign in to comment.