Skip to content

Commit

Permalink
Switch to Optimization.jl (#1836)
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion authored Jun 8, 2022
1 parent f0fc1ea commit 46313e7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Turing"
uuid = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
version = "0.21.4"
version = "0.21.5"

[deps]
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
Expand Down Expand Up @@ -53,7 +53,7 @@ MCMCChains = "5"
NamedArrays = "0.9"
Reexport = "0.2, 1"
Requires = "0.5, 1.0"
SciMLBase = "1.8.1"
SciMLBase = "1.37.1"
SpecialFunctions = "0.7.2, 0.8, 0.9, 0.10, 1, 2"
StatsBase = "0.32, 0.33"
StatsFuns = "0.8, 0.9, 1"
Expand Down
8 changes: 4 additions & 4 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ DynamicHMC = "bbc10e6e-7c05-544b-b16e-64fede858acb"
DynamicPPL = "366bfd00-2699-11ea-058f-f148b4cae6d8"
FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
GalacticOptim = "a75be94c-b780-496d-a8a9-0878b188d577"
GalacticOptimJL = "9d3c5eb1-403b-401b-8c0f-c11105342e6b"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
MCMCChains = "c7f686f2-ff18-58e9-bc7b-31028e88f75d"
Memoization = "6fafb56a-5788-4b4e-91ca-c0cea6611c73"
NamedArrays = "86f7a689-2022-50b4-a561-43c23ac3c673"
Optim = "429524aa-4258-5aef-a3af-852621145aeb"
Optimization = "7f7a1694-90dd-40f0-9382-eb1efda571ba"
OptimizationOptimJL = "36348300-93cb-4f02-beb5-3c3902f8871e"
PDMats = "90014a1f-27ba-587c-ab20-58faa44d9150"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Expand All @@ -44,12 +44,12 @@ DynamicHMC = "2.1.6, 3.0"
DynamicPPL = "0.19.1"
FiniteDifferences = "0.10.8, 0.11, 0.12"
ForwardDiff = "0.10.12"
GalacticOptim = "3"
GalacticOptimJL = "0.1"
MCMCChains = "5"
Memoization = "0.1.4"
NamedArrays = "0.9.4"
Optim = "0.22, 1.0"
Optimization = "3.5"
OptimizationOptimJL = "0.1"
PDMats = "0.10, 0.11"
ReverseDiff = "1.4.2"
SpecialFunctions = "0.10.3, 1, 2"
Expand Down
4 changes: 2 additions & 2 deletions test/modes/ModeEstimation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
ub = [2.0, 2.0]

f1 = optim_function(gdemo_default, MLE();constrained=true)
p1 = GalacticOptim.OptimizationProblem(f1.func, f1.init(true_value); lb=lb, ub=ub)
p1 = OptimizationProblem(f1.func, f1.init(true_value); lb=lb, ub=ub)

p2 = optim_objective(gdemo_default, MLE();constrained=true)

Expand Down Expand Up @@ -99,7 +99,7 @@
ub = [2.0, 2.0]

f1 = optim_function(gdemo_default, MAP();constrained=true)
p1 = GalacticOptim.OptimizationProblem(f1.func, f1.init(true_value); lb=lb, ub=ub)
p1 = OptimizationProblem(f1.func, f1.init(true_value); lb=lb, ub=ub)

p2 = optim_objective(gdemo_default, MAP();constrained=true)

Expand Down
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ using Distributions.FillArrays
using DistributionsAD
using FiniteDifferences
using ForwardDiff
using GalacticOptim
using GalacticOptimJL
using MCMCChains
using Memoization
using NamedArrays
using Optim
using Optimization
using OptimizationOptimJL
using PDMats
using ReverseDiff
using SpecialFunctions
Expand Down

2 comments on commit 46313e7

@devmotion
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/61985

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.21.5 -m "<description of version>" 46313e7ff139888e9d30182fa6c981e66dc383df
git push origin v0.21.5

Please sign in to comment.