Skip to content

Commit

Permalink
call local global bounds propagation in presolve
Browse files Browse the repository at this point in the history
  • Loading branch information
guimarqu committed Oct 10, 2023
1 parent 2863910 commit da7a0e0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Algorithm/presolve/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,18 @@ end

function update_reform_from_presolve!(reform::Reformulation{DwMaster}, presolve_reform::DwPresolveReform)
master = getmaster(reform)

# Update master
presolve_restricted_master = presolve_reform.restricted_master
update_form_from_presolve!(master, presolve_restricted_master)

Check warning on line 289 in src/Algorithm/presolve/interface.jl

View check run for this annotation

Codecov / codecov/patch

src/Algorithm/presolve/interface.jl#L288-L289

Added lines #L288 - L289 were not covered by tests

update_form_from_presolve!(master, presolve_reform.restricted_master)
# Update subproblems
presolve_repr_master = presolve_reform.restricted_master

Check warning on line 292 in src/Algorithm/presolve/interface.jl

View check run for this annotation

Codecov / codecov/patch

src/Algorithm/presolve/interface.jl#L292

Added line #L292 was not covered by tests
for (spid, sp) in get_dw_pricing_sps(reform)
update_form_from_presolve!(sp, presolve_reform.dw_sps[spid])
sp_presolve_form = presolve_reform.dw_sps[spid]
Coluna.Algorithm.propagate_local_bounds!(sp_presolve_form, presolve_restricted_master, sp, master)
Coluna.Algorithm.propagate_global_bounds!(presolve_repr_master, presolve_restricted_master, master)
update_form_from_presolve!(sp, sp_presolve_form)

Check warning on line 297 in src/Algorithm/presolve/interface.jl

View check run for this annotation

Codecov / codecov/patch

src/Algorithm/presolve/interface.jl#L294-L297

Added lines #L294 - L297 were not covered by tests
end
return
end
Expand Down

0 comments on commit da7a0e0

Please sign in to comment.