pyoptsparse icon indicating copy to clipboard operation
pyoptsparse copied to clipboard

`getValues` does not return all values with `major=False`

Open ewu63 opened this issue 4 years ago • 0 comments

Description

Describe the bug here

Steps to reproduce issue

  1. Run an optimization with SNOPT, and store the history
  2. Call getValues without specifying values, and with major=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.

ewu63 avatar May 05 '21 02:05 ewu63