File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ function test_SlackBridge_ObjectiveSense_modify()
4646 MOI. set (model, MOI. ObjectiveSense (), MOI. MIN_SENSE)
4747 MOI. set (model, MOI. ObjectiveFunction {typeof(f)} (), f)
4848 @test_throws (
49- ArgumentError ,
49+ MOI . SetAttributeNotAllowed ,
5050 MOI. set (model, MOI. ObjectiveSense (), MOI. MAX_SENSE),
5151 )
5252 MOI. set (model, MOI. ObjectiveSense (), MOI. FEASIBILITY_SENSE)
@@ -328,7 +328,8 @@ function test_original()
328328 (" y" , MOI. GreaterThan {Float64} (2.0 )),
329329 ],
330330 )
331- err = ArgumentError (
331+ err = MOI. SetAttributeNotAllowed (
332+ MOI. ObjectiveSense (),
332333 " Objective bridge of type `$(MOI. Bridges. Objective. SlackBridge{Float64,MOI. ScalarQuadraticFunction{Float64},MOI. ScalarQuadraticFunction{Float64}}) `" *
333334 " does not support modifying the objective sense. As a workaround, set" *
334335 " the sense to `MOI.FEASIBILITY_SENSE` to clear the objective function" *
You can’t perform that action at this time.
0 commit comments