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

Get Iterations History #77

Closed
rafaelrojasmiliani opened this issue Jan 12, 2022 · 1 comment
Closed

Get Iterations History #77

rafaelrojasmiliani opened this issue Jan 12, 2022 · 1 comment

Comments

@rafaelrojasmiliani
Copy link

First, I would like to congratulate the contributors of this project. It is a great work.

I would like to ask if there is a canonical way to get the value of the optimization variables for the iterations along the optimization process.
I see that the class ifopt::Problem has a member x_prev which I think it contains the data i desire. But this member is private.
My questions are:

  1. Contains x_prev the history of the iterations?
  2. Is there a way to get its value?

I think that a const method const std::vector<VectorXd> &GetIterations() const { return x_prev; }; will be usefull. It this solves the problem I can do a pull request.

@Levi-Armstrong
Copy link
Collaborator

I think this is reasonable. If you create a PR I will review it.

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

No branches or pull requests

2 participants