-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
fix: use SII instead of explicitly accessing SciMLFunction.syms #626
Changes from all commits
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69" | |
Requires = "ae029012-a4dd-5104-9daa-d747884805df" | ||
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462" | ||
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" | ||
SymbolicIndexingInterface = "2efcf032-c050-4f8e-a9bb-153293bab1f5" | ||
TerminalLoggers = "5d786b92-1e48-4d6f-9151-6b4477ca9bed" | ||
|
||
[weakdeps] | ||
|
@@ -61,6 +62,7 @@ ReverseDiff = "1" | |
SciMLBase = "1.79.0, 2" | ||
SparseArrays = "1" | ||
SparseDiffTools = "2" | ||
SymbolicIndexingInterface = "0.3" | ||
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. This seems to not get resolved 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. It's not released yet The changes here are due to SciML/SciMLBase.jl#532 |
||
Symbolics = "5" | ||
TerminalLoggers = "0.1" | ||
Tracker = "0.2" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,7 +85,7 @@ function SciMLBase.get_syms(sol::SciMLBase.OptimizationSolution{ | |
C <: | ||
MOIOptimizationNLPCache, | ||
} | ||
sol.cache.evaluator.f.syms | ||
variable_symbols(sol.cache.evaluator.f) | ||
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. Doesn't OptimizationMOI need its Project.toml updated? 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. Bump on this. 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. Ah, I didn't realize. Thanks. I'll push these changes to the |
||
end | ||
function SciMLBase.get_paramsyms(sol::SciMLBase.OptimizationSolution{ | ||
T, | ||
|
@@ -99,7 +99,7 @@ function SciMLBase.get_paramsyms(sol::SciMLBase.OptimizationSolution{ | |
C <: | ||
MOIOptimizationNLPCache, | ||
} | ||
sol.cache.evaluator.f.paramsyms | ||
parameter_symbols(sol.cache.evaluator.f) | ||
end | ||
|
||
function MOIOptimizationNLPCache(prob::OptimizationProblem, | ||
|
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.
Doesn't this need to be bumped?
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.
Why would it? Nothing in Optimization changed that prevents it from being compatible with previous versions of SciMLBase.
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.
oh I thought the RAT v3 or SII v0.3 changes would require it, but if that back compatibility is kept then we're good.