Skip to content

Commit

Permalink
Merge pull request #28 from SciML/minimizer
Browse files Browse the repository at this point in the history
Start the soft deprecation of minimizer
  • Loading branch information
ChrisRackauckas authored Feb 21, 2021
2 parents 0ff4b6a + 803642d commit 4c3d3a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SciMLBase"
uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
authors = ["Chris Rackauckas <[email protected]> and contributors"]
version = "1.8.0"
version = "1.8.1"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Expand Down
7 changes: 7 additions & 0 deletions src/solutions/optimization_solutions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ function Base.show(io::IO, A::AbstractOptimizationSolution)
return
end

Base.@propagate_inbounds function Base.getproperty(x::AbstractOptimizationSolution,s::Symbol)
if s === :minimizer
return getfield(x,:u)
end
return getfield(x,s)
end

Base.summary(A::AbstractOptimizationSolution) = string(
TYPE_COLOR, nameof(typeof(A)),
NO_COLOR, " with uType ",
Expand Down

0 comments on commit 4c3d3a4

Please sign in to comment.