Skip to content

Commit 8fda165

Browse files
fix: properly implement SII fallbacks for AbstractJumpProblem
1 parent 69c7776 commit 8fda165

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/problems/problem_interface.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ Base.@propagate_inbounds function Base.getproperty(prob::AbstractSciMLProblem, s
66
end
77

88
SymbolicIndexingInterface.symbolic_container(prob::AbstractSciMLProblem) = prob.f
9+
SymbolicIndexingInterface.symbolic_container(prob::AbstractJumpProblem) = prob.prob
910

1011
SymbolicIndexingInterface.parameter_values(prob::AbstractSciMLProblem) = prob.p
12+
SymbolicIndexingInterface.parameter_values(prob::AbstractJumpProblem) = prob.prob.p
1113
SymbolicIndexingInterface.state_values(prob::AbstractSciMLProblem) = prob.u0
14+
SymbolicIndexingInterface.state_values(prob::AbstractJumpProblem) = prob.prob.u0
1215
SymbolicIndexingInterface.current_time(prob::AbstractSciMLProblem) = prob.tspan[1]
16+
SymbolicIndexingInterface.current_time(prob::AbstractJumpProblem) = prob.prob.tspan[1]
1317

1418
Base.@propagate_inbounds function Base.getindex(prob::AbstractSciMLProblem, ::SymbolicIndexingInterface.SolvedVariables)
1519
return getindex(prob, variable_symbols(prob))

0 commit comments

Comments
 (0)