-
Notifications
You must be signed in to change notification settings - Fork 119
IPOPT wrapper improvement to get more iteration information #459
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
base: main
Are you sure you want to change the base?
Changes from 12 commits
fc14cc5
8b174c6
6bd9961
85c370a
a3566cd
efd4cac
ea0d6f9
1840b5e
2a5f543
c688021
90f3cf0
b7e039b
a51a734
d47913e
bd940ca
57869c6
dd146c6
fcd3708
c8e03d2
a6adb55
3a9e256
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -578,9 +578,9 @@ def _masterFunc2(self, x, evaluate, writeHist=True): | |
| # timing | ||
| hist["time"] = time.time() - self.startTime | ||
|
|
||
| # Save information about major iteration counting (only matters for SNOPT). | ||
| if self.name == "SNOPT": | ||
| hist["isMajor"] = False # this will be updated in _snstop if it is major | ||
| # Save information about major iteration counting (only matters for SNOPT and IPOPT). | ||
| if self.name in ["SNOPT", "IPOPT"]: | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just a curiosity for the moment.. do you think
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I think so
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, eventually we can reorganize and refactor that part of the logic, it's a fairly common feature for optimizers to provide a per-iteration callback functionality. |
||
| hist["isMajor"] = False # this will be updated in _snstop or cyipopt's `intermediate` if it is major | ||
| else: | ||
| hist["isMajor"] = True # for other optimizers we assume everything's major | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.