Skip to content

Commit 8585a73

Browse files
Merge pull request #56 from SciML/remautomtkconstr
Remove AutoMTK constructor overload here
2 parents b2251ec + 818f83b commit 8585a73

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ OptimizationTrackerExt = "Tracker"
3535
OptimizationZygoteExt = "Zygote"
3636

3737
[compat]
38-
ADTypes = "1"
38+
ADTypes = "1.3"
3939
ArrayInterface = "7.6"
4040
DocStringExtensions = "0.9"
4141
Enzyme = "0.11.11, =0.12.6"

ext/OptimizationMTKExt.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ import OptimizationBase.SciMLBase: OptimizationFunction
66
import OptimizationBase.ADTypes: AutoModelingToolkit, AutoSymbolics, AutoSparse
77
isdefined(Base, :get_extension) ? (using ModelingToolkit) : (using ..ModelingToolkit)
88

9-
function OptimizationBase.ADTypes.AutoModelingToolkit(sparse = false, cons_sparse = false)
10-
if sparse || cons_sparse
11-
return AutoSparse(AutoSymbolics())
12-
else
13-
return AutoSymbolics()
14-
end
15-
end
16-
179
function OptimizationBase.instantiate_function(
1810
f, x, adtype::AutoSparse{<:AutoSymbolics, S, C}, p,
1911
num_cons = 0) where {S, C}

0 commit comments

Comments
 (0)