mdolab / pyoptsparse

pyOptSparse is an object-oriented framework for formulating and solving nonlinear constrained optimization problems in an efficient, reusable, and portable manner.
https://mdolab-pyoptsparse.readthedocs-hosted.com/en/latest/
GNU Lesser General Public License v3.0
229 stars 109 forks source link

Improve printing of optimization and solution objects #244

Open ewu63 opened 3 years ago

ewu63 commented 3 years ago

Description

The current str() implementation can be improved:

marcomangano commented 3 years ago

Related to this issue, see #255 . I think we need to refactor the way the Optimization instance is updated so that when printing the solution at the end, functions and variables are consistent.

This should be an alternative to check History.getValues(callCounters='last') when e.g. history is not turned on.