`getValues` does not return all values with `major=False`
Nobody has claimed this yet.
- 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
- 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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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