Skip to content

Commit

Permalink
Merge pull request #785 from SciML/optbase1.3
Browse files Browse the repository at this point in the history
Bump OptimizationBase to 1.3.3
  • Loading branch information
Vaibhavdixit02 authored Jul 6, 2024
2 parents 38b2556 + 0794532 commit 52c2812
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Optimization"
uuid = "7f7a1694-90dd-40f0-9382-eb1efda571ba"
version = "3.26.3"
version = "3.27.0"

[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Expand Down Expand Up @@ -29,7 +29,7 @@ LBFGSB = "0.4.1"
LinearAlgebra = "1.10"
Logging = "1.10"
LoggingExtras = "0.4, 1"
OptimizationBase = "1"
OptimizationBase = "1.3.3"
Pkg = "1"
Printf = "1.10"
ProgressLogging = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ OptimizationEvolutionary = "0.1, 0.2, 0.3"
OptimizationFlux = "0.2.1"
OptimizationGCMAES = "0.1, 0.2"
OptimizationMOI = "0.1, 0.2, 0.3, 0.4"
OptimizationManopt = "0.0.2"
OptimizationManopt = "0.0.2, 0.0.3"
OptimizationMetaheuristics = "0.1, 0.2"
OptimizationMultistartOptimization = "0.1, 0.2"
OptimizationNLopt = "0.1, 0.2"
Expand Down
4 changes: 2 additions & 2 deletions lib/OptimizationManopt/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "OptimizationManopt"
uuid = "e57b7fff-7ee7-4550-b4f0-90e9476e9fb6"
authors = ["Mateusz Baran <[email protected]>"]
version = "0.0.2"
version = "0.0.3"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand All @@ -18,7 +18,7 @@ ManifoldDiff = "0.3.10"
Manifolds = "0.9.18"
ManifoldsBase = "0.15.10"
Manopt = "0.4.63"
Optimization = "3.25.1"
Optimization = "3.27"
Reexport = "1.2"
julia = "1.9"

Expand Down
2 changes: 1 addition & 1 deletion lib/OptimizationManopt/src/OptimizationManopt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ function SciMLBase.__solve(cache::OptimizationCache{
}
local x, cur, state

manifold = haskey(cache.solver_args, :manifold) ? cache.solver_args[:manifold] : nothing
manifold = cache.manifold
gradF = haskey(cache.solver_args, :riemannian_grad) ?
cache.solver_args[:riemannian_grad] : nothing
hessF = haskey(cache.solver_args, :riemannian_hess) ?
Expand Down
4 changes: 2 additions & 2 deletions lib/OptimizationManopt/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ end
opt = OptimizationManopt.GradientDescentOptimizer()
@time sol = Optimization.solve(prob, opt)

@test sol.uq atol=1e-2
@test sol.uq rtol=1e-2

function closed_form_solution!(M::SymmetricPositiveDefinite, q, L, U, p, X)
# extract p^1/2 and p^{-1/2}
Expand Down Expand Up @@ -243,5 +243,5 @@ end
@time sol = Optimization.solve(
prob, opt, sub_problem = (M, q, p, X) -> closed_form_solution!(M, q, L, U, p, X),
maxiters = 1000)
@test sol.uq atol=1e-2
@test sol.uq rtol=1e-2
end
4 changes: 2 additions & 2 deletions lib/OptimizationPRIMA/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "OptimizationPRIMA"
uuid = "72f8369c-a2ea-4298-9126-56167ce9cbc2"
authors = ["Vaibhav Dixit <[email protected]> and contributors"]
version = "0.1.0"
version = "0.2.0"

[deps]
Optimization = "7f7a1694-90dd-40f0-9382-eb1efda571ba"
Expand All @@ -11,7 +11,7 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69"

[compat]
julia = "1"
Optimization = "3.21"
Optimization = "3.27"
PRIMA = "0.2.0"
Reexport = "1"

Expand Down
3 changes: 2 additions & 1 deletion lib/OptimizationPRIMA/src/OptimizationPRIMA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ function Optimization.OptimizationCache(prob::SciMLBase.OptimizationProblem,

return Optimization.OptimizationCache(f, reinit_cache, prob.lb, prob.ub, prob.lcons,
prob.ucons, prob.sense,
opt, data, progress, callback,
opt, data, progress, callback, nothing,
Optimization.OptimizationBase.AnalysisResults(nothing, nothing),
merge((; maxiters, maxtime, abstol, reltol),
NamedTuple(kwargs)))
end
Expand Down

0 comments on commit 52c2812

Please sign in to comment.