Skip to content

Commit

Permalink
propagation of local bounds in presolve
Browse files Browse the repository at this point in the history
  • Loading branch information
guimarqu committed Oct 10, 2023
1 parent da7a0e0 commit abd29ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Algorithm/presolve/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ function run!(algo::PresolveAlgorithm, ::Env, reform::Reformulation, input::Pres
MathProg.setcubub!(getmaster(reform), varid, val)
end
end

presolve_reform = create_presolve_reform(reform)

tightened_bounds = bounds_tightening(presolve_reform.restricted_master.form)
Expand Down
1 change: 1 addition & 0 deletions src/Algorithm/presolve/propagation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function propagate_local_bounds!(presolve_sp::PresolveFormulation, presolve_mast
varid = getid(var)
column = @view pool.solutions[varid,:]
for (varid, val) in column
getduty(varid) <= DwSpPricingVar || continue
sp_var_col = presolve_sp.var_to_col[varid]
partial_solution[sp_var_col] += val * partial_sol_value
end
Expand Down

0 comments on commit abd29ed

Please sign in to comment.