@@ -626,7 +626,7 @@ function test_read_model2()
626626 ci = MOI. ConstraintIndex {MOI.VariableIndex,MOI.Interval{Float64}} (2 )
627627 @test ! MOI. is_valid (model, ci)
628628 @test MOI. get (model, MOI. VariableName (), MOI. VariableIndex (8 )) == " V8"
629- @test model. variables. lower[8 ] == - Inf
629+ @test model. variables. lower[8 ] == 0.0
630630 @test model. variables. upper[8 ] == - 3
631631 obj_type = MOI. get (model, MOI. ObjectiveFunctionType ())
632632 obj_func = MOI. get (model, MOI. ObjectiveFunction {obj_type} ())
@@ -895,17 +895,17 @@ function test_reading_bounds()
895895 # Test upper bound
896896 _test_round_trip (" x <= 1" , " Bounds\n 0 <= x <= 1\n End" )
897897 _test_round_trip (" x <= 0" , " Bounds\n x = 0\n End" )
898- _test_round_trip (" x <= -1" , " Bounds\n -infinity <= x <= -1\n End" )
898+ _test_round_trip (" x <= -1" , " Bounds\n 0 <= x <= -1\n End" )
899899 _test_round_trip (" x < 1" , " Bounds\n 0 <= x <= 1\n End" )
900900 _test_round_trip (" x < 0" , " Bounds\n x = 0\n End" )
901- _test_round_trip (" x < -1" , " Bounds\n -infinity <= x <= -1\n End" )
901+ _test_round_trip (" x < -1" , " Bounds\n 0 <= x <= -1\n End" )
902902 # Test reversed upper bound
903903 _test_round_trip (" 1 >= x" , " Bounds\n 0 <= x <= 1\n End" )
904904 _test_round_trip (" 0 >= x" , " Bounds\n x = 0\n End" )
905- _test_round_trip (" -1 >= x" , " Bounds\n -infinity <= x <= -1\n End" )
905+ _test_round_trip (" -1 >= x" , " Bounds\n 0 <= x <= -1\n End" )
906906 _test_round_trip (" 1 > x" , " Bounds\n 0 <= x <= 1\n End" )
907907 _test_round_trip (" 0 > x" , " Bounds\n x = 0\n End" )
908- _test_round_trip (" -1 > x" , " Bounds\n -infinity <= x <= -1\n End" )
908+ _test_round_trip (" -1 > x" , " Bounds\n 0 <= x <= -1\n End" )
909909 # Test equality
910910 _test_round_trip (" x == 1" , " Bounds\n x = 1\n End" )
911911 _test_round_trip (" x == 0" , " Bounds\n x = 0\n End" )
0 commit comments