Skip to content

Commit

Permalink
Merge pull request #829 from AayushSabharwal/as/fix-symbolic-container
Browse files Browse the repository at this point in the history
fix: fix `symbolic_container` and `parameter_values` for solutions
  • Loading branch information
ChrisRackauckas authored Oct 26, 2024
2 parents c8b6074 + 508ee88 commit eb6afeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solutions/solution_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ Base.@propagate_inbounds function Base.getproperty(A::AbstractSolution, sym::Sym
end
end

SymbolicIndexingInterface.symbolic_container(A::AbstractSolution) = A.prob.f
SymbolicIndexingInterface.parameter_values(A::AbstractSolution) = A.prob.p
SymbolicIndexingInterface.symbolic_container(A::AbstractSolution) = A.prob
SymbolicIndexingInterface.parameter_values(A::AbstractSolution) = parameter_values(A.prob)
function SymbolicIndexingInterface.parameter_values(A::AbstractSolution, i)
parameter_values(parameter_values(A), i)
end
Expand Down

0 comments on commit eb6afeb

Please sign in to comment.