Skip to content

Commit

Permalink
[Test] fix domain of variables in hs110 test (#2551)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Oct 8, 2024
1 parent f82c7e9 commit 3c10947
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/Test/test_nonlinear.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1386,19 +1386,19 @@ function test_nonlinear_expression_hs110(
MOI.Utilities.loadfromstring!(
model,
"""
variables: x1, x2, x3, x4, x5, x6, x7, x8, x9, x10
minobjective: ScalarNonlinearFunction($f)
x1 in Interval(-2.001, 9.999)
x2 in Interval(-2.001, 9.999)
x3 in Interval(-2.001, 9.999)
x4 in Interval(-2.001, 9.999)
x5 in Interval(-2.001, 9.999)
x6 in Interval(-2.001, 9.999)
x7 in Interval(-2.001, 9.999)
x8 in Interval(-2.001, 9.999)
x9 in Interval(-2.001, 9.999)
x10 in Interval(-2.001, 9.999)
""",
variables: x1, x2, x3, x4, x5, x6, x7, x8, x9, x10
minobjective: ScalarNonlinearFunction($f)
x1 in Interval(2.001, 9.999)
x2 in Interval(2.001, 9.999)
x3 in Interval(2.001, 9.999)
x4 in Interval(2.001, 9.999)
x5 in Interval(2.001, 9.999)
x6 in Interval(2.001, 9.999)
x7 in Interval(2.001, 9.999)
x8 in Interval(2.001, 9.999)
x9 in Interval(2.001, 9.999)
x10 in Interval(2.001, 9.999)
""",
)
x = MOI.get(model, MOI.ListOfVariableIndices())
MOI.set.(model, MOI.VariablePrimalStart(), x, 9.0)
Expand Down

0 comments on commit 3c10947

Please sign in to comment.