-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge 1.1.1 changes #735
Merge 1.1.1 changes #735
Conversation
Co-authored-by: Thomas Bittar <thomas.bittar@rte-france.com> (cherry picked from commit 9eaff46)
@@ -264,7 +264,8 @@ void BendersByBatch::GetSubproblemCut( | |||
subproblem_data.var_name_and_subgradient); // dual pi_s | |||
auto subpb_cost_under_approx = GetAlpha_i()[ProblemToId(name)]; | |||
*batch_subproblems_costs_contribution_in_gap_per_proc += | |||
subproblem_data.subproblem_cost - subpb_cost_under_approx; | |||
std::max(subproblem_data.subproblem_cost - subpb_cost_under_approx, | |||
static_cast<double>(0)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Peut-être que je suis en peu pédant ou j'ai loupé qq chose, mais un literal 0.0 est déjà un double. Pourquoi faire le casting ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oui^^ @JasonMarechal25 je fais la modif direct dans cette PR où on le fait d'abord dans la branche de la release 1.1.1 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est une branche à part, où j'ai cherry-pick des truc de la 1.1.1, donc tu peux faire ici
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Merge changes from 1.1.1