-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Major iteration counting #39
Conversation
… f2py so that we can script it in python and pass it to SNOPT. Also added isMajor flag in db and modified optview accordingly
To test, run |
@nwu63 what's the status on this? Should I test this out now? |
Nobody reviewed/tested the code so never merged. I did bug @eirikurj about it but I know he's been very busy. Would be great if someone can check to make sure it works as expected and then pull it in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to change OptView logic to work well with other optimizers. Running with SLSQP then selecting Major Iterations on OptView produces a single point, the first iteration. Try with p hs015.py --opt=SLSQP --storeHistory=1
then running OptView on it.
Otherwise looks good on my end, with all tests passing and OptView looking good for SNOPT!
More changes requested:
Need to add some logic to avoid this issue. |
…ue for optimizers other than SNOPT
We're waiting to merge this in until we have a discussion on the procedure for PyOptSparse updates going forward. |
…nto itercounting
…ve in history file
update travis.yml
* Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml
* Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml * Update .travis.yml
* removed sqlitedict folder * updated docs to say that sqlitedict is an explicit external dependency * removed explicit import of sqlitedict from pyoptsparse * updated docs to pin a version for sqlitedict, also added requirements.txt
…was removed when refactored/merged
…major iteration when other evaluation points are very close
pyoptsparse/pyOpt_history.py
Outdated
@@ -21,6 +21,7 @@ | |||
# External Python modules | |||
# ============================================================================= | |||
import os | |||
import numpy as np |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency of the code use numpy instead of the np
pyoptsparse/pyOpt_history.py
Outdated
from .pyOpt_error import Error | ||
from sqlitedict import SqliteDict | ||
eps = numpy.finfo(1.0).eps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of using 1.0 use numpy.float_
or numpy.float64
Addresses #21 by:
snkerc
instead ofsnoptc
snstop
code in Python to replace the one supplied by SNOPT, and called every major iterationsnstop
Python code with f2py and passing it intosnkerc
sincesnoptc
does not allow passing a customsnstop
function handleisMajor
is set to true when the evaluation is at a major iteration