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

Fix HybridBayesTree Optimize #1287

Merged
merged 2 commits into from
Sep 13, 2022
Merged

Fix HybridBayesTree Optimize #1287

merged 2 commits into from
Sep 13, 2022

Conversation

varunagrawal
Copy link
Collaborator

This PR fixes an issue in the HybridBayesTree optimization by traversing the tree rather than looping over all the nodes.
Doing this ensures we don't optimize a child before its parent aka we maintain the reverse topological sort of the BayesTree.

Copy link
Collaborator

@ProfFan ProfFan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@@ -24,6 +24,7 @@
#include <gtsam/hybrid/HybridBayesTree.h>
#include <gtsam/inference/BayesTree-inst.h>
#include <gtsam/inference/BayesTreeCliqueBase-inst.h>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move inst to bottom

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried but the formatter keeps moving it back 😕

@varunagrawal varunagrawal merged commit 82b70d7 into develop Sep 13, 2022
@varunagrawal varunagrawal deleted the hybrid/multifrontal-fix branch September 13, 2022 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants