@@ -527,6 +527,7 @@ function test_objective_set_via_modify(
527
527
@requires MOI. supports (model, attr)
528
528
@requires _supports (config, MOI. modify)
529
529
@requires _supports (config, MOI. ScalarCoefficientChange)
530
+ @requires _supports (config, MOI. ListOfModelAttributesSet)
530
531
@test MOI. get (model, MOI. ListOfModelAttributesSet ()) == []
531
532
x = MOI. add_variable (model)
532
533
MOI. modify (model, attr, MOI. ScalarCoefficientChange (x, T (1 )))
@@ -536,10 +537,11 @@ end
536
537
537
538
function test_objective_ObjectiveSense_in_ListOfModelAttributesSet (
538
539
model:: MOI.ModelLike ,
539
- :: Config{T} ,
540
+ config :: Config{T} ,
540
541
) where {T}
541
542
attr = MOI. ObjectiveSense ()
542
543
@requires MOI. supports (model, attr)
544
+ @requires _supports (config, MOI. ListOfModelAttributesSet)
543
545
@test (attr in MOI. get (model, MOI. ListOfModelAttributesSet ())) == false
544
546
MOI. set (model, MOI. ObjectiveSense (), MOI. MAX_SENSE)
545
547
@test (attr in MOI. get (model, MOI. ListOfModelAttributesSet ())) == true
@@ -548,10 +550,11 @@ end
548
550
549
551
function test_objective_VariableIndex_in_ListOfModelAttributesSet (
550
552
model:: MOI.ModelLike ,
551
- :: Config{T} ,
553
+ config :: Config{T} ,
552
554
) where {T}
553
555
attr = MOI. ObjectiveFunction {MOI.VariableIndex} ()
554
556
@requires MOI. supports (model, attr)
557
+ @requires _supports (config, MOI. ListOfModelAttributesSet)
555
558
@test (attr in MOI. get (model, MOI. ListOfModelAttributesSet ())) == false
556
559
MOI. set (model, MOI. ObjectiveSense (), MOI. MIN_SENSE)
557
560
x = MOI. add_variable (model)
@@ -562,10 +565,11 @@ end
562
565
563
566
function test_objective_ScalarAffineFunction_in_ListOfModelAttributesSet (
564
567
model:: MOI.ModelLike ,
565
- :: Config{T} ,
568
+ config :: Config{T} ,
566
569
) where {T}
567
570
attr = MOI. ObjectiveFunction {MOI.ScalarAffineFunction{T}} ()
568
571
@requires MOI. supports (model, attr)
572
+ @requires _supports (config, MOI. ListOfModelAttributesSet)
569
573
@test (attr in MOI. get (model, MOI. ListOfModelAttributesSet ())) == false
570
574
MOI. set (model, MOI. ObjectiveSense (), MOI. MIN_SENSE)
571
575
x = MOI. add_variable (model)
@@ -576,10 +580,11 @@ end
576
580
577
581
function test_objective_ScalarQuadraticFunction_in_ListOfModelAttributesSet (
578
582
model:: MOI.ModelLike ,
579
- :: Config{T} ,
583
+ config :: Config{T} ,
580
584
) where {T}
581
585
attr = MOI. ObjectiveFunction {MOI.ScalarQuadraticFunction{T}} ()
582
586
@requires MOI. supports (model, attr)
587
+ @requires _supports (config, MOI. ListOfModelAttributesSet)
583
588
@test (attr in MOI. get (model, MOI. ListOfModelAttributesSet ())) == false
584
589
MOI. set (model, MOI. ObjectiveSense (), MOI. MIN_SENSE)
585
590
x = MOI. add_variable (model)
0 commit comments