Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Feb 5, 2024
1 parent 95b5b1b commit e48878a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cpp/benders/benders_core/OuterloopCriterion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ double OuterloopCriterionLOL::ProcessSum(const BendersCuts& benders_cuts) {
auto solution = sub_problem_data.variables.values[i];
if (std::regex_search(var_name, rgx_) &&
solution > UNSUPPLIED_ENERGY_MAX) {
sum_loss += solution;
// 1h of unsupplied energy
sum_loss += 1;
}
}
}
Expand Down

0 comments on commit e48878a

Please sign in to comment.