Skip to content
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

Merged
merged 6 commits into from
Dec 22, 2023
Merged

Merge 1.1.1 changes #735

merged 6 commits into from
Dec 22, 2023

Conversation

JasonMarechal25
Copy link
Contributor

Merge changes from 1.1.1

tbittar and others added 4 commits December 19, 2023 10:19
@@ -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));
Copy link
Collaborator

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 ?

Copy link
Contributor

@tbittar tbittar Dec 19, 2023

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 ?

Copy link
Contributor Author

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

@tbittar tbittar requested a review from ianmnz December 19, 2023 12:40
Copy link

@tbittar tbittar merged commit 7735ca1 into develop Dec 22, 2023
10 checks passed
@tbittar tbittar deleted the feature/merge_back_1.1.1 branch December 22, 2023 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants