@@ -515,54 +515,6 @@ function solve_zero_one_with_bounds_3(model::MOI.ModelLike, config::TestConfig)
515515end
516516unittests[" solve_zero_one_with_bounds_3" ] = solve_zero_one_with_bounds_3
517517
518- function solve_constrs_with_inf_bounds (model:: MOI.ModelLike , config:: TestConfig )
519- MOI. empty! (model)
520- x = MOI. add_variable (model)
521- y = MOI. add_variable (model)
522- objective_function = MOI. ScalarAffineFunction (
523- [MOI. ScalarAffineTerm (1.0 , x), MOI. ScalarAffineTerm (- 1.0 , y)],
524- 0.0
525- )
526- MOI. set (
527- model,
528- MOI. ObjectiveFunction {typeof(objective_function)} (),
529- objective_function,
530- )
531- MOI. set (model, MOI. ObjectiveSense (), MOI. MAX_SENSE)
532-
533- c1 = MOI. add_constraint (
534- model,
535- MOI. SingleVariable (x),
536- MOI. LessThan {Float64} (1.0 )
537- )
538- c2 = MOI. add_constraint (
539- model,
540- MOI. SingleVariable (x),
541- MOI. GreaterThan {Float64} (- Inf )
542- )
543- c3 = MOI. add_constraint (
544- model,
545- MOI. SingleVariable (y),
546- MOI. LessThan {Float64} (Inf )
547- )
548- c4 = MOI. add_constraint (
549- model,
550- MOI. SingleVariable (y),
551- MOI. GreaterThan {Float64} (- 1.0 )
552- )
553-
554- @test MOI. is_valid (model, c2)
555- @test MOI. is_valid (model, c3)
556-
557- return test_model_solution (
558- model,
559- config;
560- objective_value = 2.0 ,
561- variable_primal = [(x, 1.0 ), (y, - 1.0 )],
562- )
563- end
564- unittests[" solve_constrs_with_inf_bounds" ] = solve_constrs_with_inf_bounds
565-
566518function solve_one_sided_intervals (model:: MOI.ModelLike , config:: TestConfig )
567519 MOI. empty! (model)
568520 MOIU. loadfromstring! (
0 commit comments