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

User-provided hook within the internal loop of non-linear optimizers #586

Merged
merged 4 commits into from
Nov 18, 2020

Conversation

jlblancoc
Copy link
Member

See the example in the new unit test.
This allows progress reports, debugging, GUI updating, etc. during non-linear optimizers are running.

Note: this PR builds upon #585 .

Copy link
Collaborator

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

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

LGTM but requesting some minor updates.

gtsam/nonlinear/NonlinearOptimizerParams.h Show resolved Hide resolved
gtsam/nonlinear/NonlinearOptimizerParams.h Show resolved Hide resolved
@varunagrawal varunagrawal added enhancement Improvement to GTSAM feature New proposed feature labels Nov 11, 2020
Copy link
Collaborator

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

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

LGTM!

* };
* \endcode
* or to the result of a properly-formed `std::bind` call.
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

Amazing!!!

boost::optional<Ordering> ordering; ///< The optional variable elimination ordering, or empty to use COLAMD (default: empty)
IterativeOptimizationParameters::shared_ptr iterativeParams; ///< The container for iterativeOptimization parameters. used in CG Solvers.

NonlinearOptimizerParams() = default;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I remember seeing a comment from @dellaert about having variables before constructors, so he'll be happy about this one. 😄

@varunagrawal
Copy link
Collaborator

I believe the build is failing because Actions got rid of Boost 1.69 on Linux virtual environments, opting instead for 1.72. We already landed the PR to upgrade the workflows, but I guess this PR was created before that. I'll push a merge.

@jlblancoc
Copy link
Member Author

@dellaert Should we merge this one? Do you want to take a look first?

Copy link
Member

@dellaert dellaert left a comment

Choose a reason for hiding this comment

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

Nice! Feel free to merge

@varunagrawal varunagrawal merged commit 653c69f into develop Nov 18, 2020
@varunagrawal varunagrawal deleted the feature/lm-iteration-hook-impl branch November 18, 2020 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to GTSAM feature New proposed feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants