mdolab / mdolab/pyoptsparse

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

Open
#250 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
270
Forks
123
Avg merge
1d 18h
Merged PRs (30d)
3

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the getValues implementation and reproduce the issue with an SNOPT optimization history, omitting the values argument and passing major=False. Trace the check that changes major to True. Done means non-major values are returned at all iterations while major-only values are skipped.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.