Skip to content

Commit 50b44fa

Browse files
add test
1 parent 607c475 commit 50b44fa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/GalacticOptimJL/Project.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@ Optim = "429524aa-4258-5aef-a3af-852621145aeb"
99
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
1010

1111
[compat]
12-
julia = "1"
1312
GalacticOptim = "3"
1413
Optim = "1"
1514
Reexport = "1.2"
15+
julia = "1"
1616

1717
[extras]
18+
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
1819
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
1920
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
2021
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2122
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
2223

2324
[targets]
24-
test = ["ForwardDiff", "Random", "Test", "Zygote"]
25+
test = ["ForwardDiff", "ModelingToolkit", "Random", "Test", "Zygote"]

lib/GalacticOptimJL/test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ using Test
2323

2424
cons = (x, p) -> [x[1]^2 + x[2]^2]
2525
optprob = OptimizationFunction(rosenbrock, GalacticOptim.AutoForwardDiff(); cons=cons)
26+
optprob = OptimizationFunction(rosenbrock, GalacticOptim.AutoModelingToolkit(); cons=cons)
2627

2728
prob = OptimizationProblem(optprob, x0, _p)
2829

0 commit comments

Comments
 (0)