pyoptsparse icon indicating copy to clipboard operation
pyoptsparse copied to clipboard

Improve printing of optimization and solution objects

Open ewu63 opened this issue 3 years ago • 1 comments

Description

The current str() implementation can be improved:

  • objective value should not be initialized to zero. Instead should be None and a placeholder text should be shown
  • same for constraint values
  • same with Lagrange multipliers
  • optProb variable values are wrong after optimization
    • also check that the initial values are correct
  • should have a description of what status is expected to show

ewu63 avatar Apr 29 '21 22:04 ewu63

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.

marcomangano avatar May 13 '21 19:05 marcomangano