Skip to content

Commit

Permalink
Not erasing sub pb mps file in merge
Browse files Browse the repository at this point in the history
  • Loading branch information
tbittar committed Dec 10, 2024
1 parent 0b474d0 commit c36b135
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cpp/benders/merge_mps/MergeMPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ void MergeMPS::launch() {

if (kvp.first != _options.MASTER_NAME) {
solver_l->read_prob_mps(problem_name);
std::filesystem::remove(problem_name);
// std::filesystem::remove(problem_name);
int mps_ncols(solver_l->get_ncols());

// -------- Change sub pb objective to take weights into account -------
DblVector o(mps_ncols);
IntVector sequence(mps_ncols);
for (int i(0); i < mps_ncols; ++i) {
Expand All @@ -47,6 +48,9 @@ void MergeMPS::launch() {
c *= weigth;
}
solver_l->chg_obj(sequence, o);
// -------- End change sub pb objective to take weights into account -----


} else {
solver_l->read_prob_mps(problem_name);
}
Expand Down

0 comments on commit c36b135

Please sign in to comment.