Skip to content

Commit

Permalink
Merge pull request #6 from alecloudenback/master
Browse files Browse the repository at this point in the history
Update for v4 of Optimization
  • Loading branch information
aplavin authored Sep 29, 2024
2 parents 0000000 + b65ff25 commit 29e3650
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
AccessorsExtra = "0.1.43"
ConstructionBase = "1.5.1"
DataPipes = "0.3.5"
Optimization = "3"
Optimization = "3,4"
Reexport = "1.2.2"
julia = "1.6"
5 changes: 3 additions & 2 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ CompatHelperLocal = "5224ae11-6099-4aaa-941d-3aab004bd678"
IntervalSets = "8197267c-284f-5f27-9208-e0e47529a953"
OptimizationMetaheuristics = "3aafef2f-86ae-4776-b337-85a36adf0b55"
OptimizationOptimJL = "36348300-93cb-4f02-beb5-3c3902f8871e"
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
StructArrays = "09ab397b-f2b6-538f-b94a-2f83cf4a842a"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand All @@ -14,8 +15,8 @@ TestItems = "1c621080-faea-4a02-84b6-bbd5e436b8fe"
Aqua = "0.8"
CompatHelperLocal = "0.1.24"
IntervalSets = "0.7.2"
OptimizationMetaheuristics = "0.2"
OptimizationOptimJL = "0.2"
OptimizationMetaheuristics = "0.3"
OptimizationOptimJL = "0.4"
StaticArrays = "1.5.6"
StructArrays = "0.6.8"
TestItemRunner = "0.2.0"
Expand Down
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using TestItemRunner


@testitem "constructorof" begin
of = OptimizationFunction(sin, Optimization.AutoForwardDiff())
of = OptimizationFunction((u, _) -> sin(u), Optimization.AutoForwardDiff())
@test constructorof(typeof(of))(Accessors.getfields(of)...) === of
end

Expand All @@ -13,7 +13,7 @@ end
using StructArrays
using StaticArrays
using OptimizationOptimJL, OptimizationMetaheuristics

using ReverseDiff
struct ExpModel{A,B}
scale::A
shift::B
Expand Down

0 comments on commit 29e3650

Please sign in to comment.