diff --git a/Project.toml b/Project.toml index 0ae3d9b14..6ebaa644e 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "SciMLBase" uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462" authors = ["Chris Rackauckas and contributors"] -version = "1.8.0" +version = "1.8.1" [deps] ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9" diff --git a/src/solutions/optimization_solutions.jl b/src/solutions/optimization_solutions.jl index 4d612efd6..df4475c45 100644 --- a/src/solutions/optimization_solutions.jl +++ b/src/solutions/optimization_solutions.jl @@ -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 ",