-
Notifications
You must be signed in to change notification settings - Fork 113
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
Store the optimal information in the history file #283
Comments
Hi @nwu63 , |
This issue is about finding the optimal solution in the history object. The information is already present in the solution object returned by the optimizer, e.g. |
@nwu63 thanks a lot for your comment, |
@nwu63 do you have test nsga2 for optimise single objective function? |
In the future, please open new issues since your questions are totally unrelated to this issue. I did add a test for NSGA2 when only a single objective function is present, see #330. For plotting, please see the documentation on postprocessing here. I am not sure if we have something that matches up each generation, since pyOptSparse is primarily focused on gradient-based optimizers and not population-based ones. |
Description of feature
The optimal design is stored in the solution object, but not in the history file (remember that the final iteration may not be the optimal solution). Similar to the
last
key, we should have anoptimal
key or something that stores the callCounter corresponding to the optimal solution.Potential solution
This may require stepping through the solution to try and match a callCounter, maybe that's a bit hacky?
The text was updated successfully, but these errors were encountered: