|
318 | 318 | @test MOI.get(optimizer, MOI.DualStatus()) == MOI.NO_SOLUTION
|
319 | 319 | end
|
320 | 320 |
|
321 |
| -@testset "broken indicator test" for presolving in (-1, 0) |
| 321 | +@testset "broken indicator test" for presolving in (1, 0) |
322 | 322 | model = MOIB.full_bridge_optimizer(SCIP.Optimizer(display_verblevel=0, presolving_maxrounds=presolving), Float64)
|
323 | 323 | config = MOIT.Config(atol=5e-3, rtol=1e-4, exclude=Any[
|
324 | 324 | MOI.ConstraintDual, MOI.ConstraintName, MOI.DualObjectiveValue, MOI.VariableBasisStatus, MOI.ConstraintBasisStatus,
|
@@ -380,16 +380,18 @@ end
|
380 | 380 | MOI.set(model, MOI.ObjectiveSense(), MOI.MAX_SENSE)
|
381 | 381 | @test MOI.get(model, MOI.TerminationStatus()) == MOI.OPTIMIZE_NOT_CALLED
|
382 | 382 | MOI.optimize!(model)
|
383 |
| - if presolving == 0 |
| 383 | + if presolving == 1 && v"8.0.1" <= SCIP.SCIP_versionnumber() <= v"8.0.2" |
| 384 | + @test_broken MOI.get(model, MOI.TerminationStatus()) == config.optimal_status |
| 385 | + @test_broken MOI.get(model, MOI.PrimalStatus()) == MOI.FEASIBLE_POINT |
| 386 | + else |
| 387 | + @info "presolving $presolving" |
| 388 | + @info "$(SCIP.SCIP_versionnumber())" |
384 | 389 | @test MOI.get(model, MOI.TerminationStatus()) == config.optimal_status
|
385 | 390 | @test MOI.get(model, MOI.PrimalStatus()) == MOI.FEASIBLE_POINT
|
386 | 391 | @test ≈(MOI.get(model, MOI.ObjectiveValue()), T(115 // 4), config)
|
387 | 392 | @test ≈(MOI.get(model, MOI.VariablePrimal(), x1), T(5 // 4), config)
|
388 | 393 | @test ≈(MOI.get(model, MOI.VariablePrimal(), x2), T(35 // 4), config)
|
389 | 394 | @test ≈(MOI.get(model, MOI.VariablePrimal(), z1), T(1), config)
|
390 | 395 | @test ≈(MOI.get(model, MOI.VariablePrimal(), z2), T(1), config)
|
391 |
| - else |
392 |
| - @test_broken MOI.get(model, MOI.TerminationStatus()) == config.optimal_status |
393 |
| - @test_broken MOI.get(model, MOI.PrimalStatus()) == MOI.FEASIBLE_POINT |
394 | 396 | end
|
395 | 397 | end
|
0 commit comments