Skip to content

Conversation

varunagrawal
Copy link
Contributor

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
Contributor 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