pyoptsparse
pyoptsparse copied to clipboard
`getValues` does not return all values with `major=False`
Description
Describe the bug here
Steps to reproduce issue
- Run an optimization with SNOPT, and store the history
- Call
getValueswithout specifyingvalues, and withmajor=False
Current behavior
The major flag gets switched to True, and only those are returned.
This is probably because all values include some which are only defined at major iterations, so the internal check changes it to major=True.
Expected behavior
Perhaps the major-only values are skipped, and the rest are returned at all iterations.