Skip to content

Commit

Permalink
Try to cover more lines
Browse files Browse the repository at this point in the history
  • Loading branch information
rrsadykov committed Feb 2, 2024
1 parent 96a48ee commit 7c30e91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/Algorithm/presolve/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,3 @@ function _column_is_proper(col_id, sp_form)
end
return true
end

function column_is_proper(col_id, reform)
sp_id = getoriginformuid(col_id)
sp_form = get_dw_pricing_sps(reform)[sp_id]
return _column_is_proper(col_id, sp_form)
end
4 changes: 3 additions & 1 deletion test/unit/Presolve/presolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ function test_presolve_full()
x_3 + x_4 + 0.0 PricingSetupVar_sp_5
s.t.
1.0 x_3 + 1.0 x_4 >= 4.0
solutions
2.0 x_3 {MC_2}
continuous
pure
Expand Down Expand Up @@ -614,4 +616,4 @@ function test_presolve_full()
return nothing
end

register!(unit_tests, "presolve_reformulation", test_presolve_full, f = true)
register!(unit_tests, "presolve_reformulation", test_presolve_full)

0 comments on commit 7c30e91

Please sign in to comment.