Skip to content

Commit f035d52

Browse files
Merge pull request #424 from SciML/boundoptimization
Use updated ordering from `toexpr` in constraint expression
2 parents 816ac50 + a076b6d commit f035d52

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Project.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Optimization"
22
uuid = "7f7a1694-90dd-40f0-9382-eb1efda571ba"
3-
version = "3.9.3"
3+
version = "3.9.4"
44

55
[deps]
66
ArrayInterfaceCore = "30b0a656-2188-435a-8636-2ec0e6a096e2"
@@ -24,7 +24,6 @@ ArrayInterfaceCore = "0.1.1"
2424
ConsoleProgressMonitor = "0.1"
2525
DocStringExtensions = "0.8, 0.9"
2626
LoggingExtras = "0.4, 0.5, 1"
27-
ModelingToolkit = "~8.30.0"
2827
ProgressLogging = "0.1"
2928
Reexport = "0.2, 1.0"
3029
Requires = "1.0"

src/function/mtk.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function instantiate_function(f, x, adtype::AutoModelingToolkit, p, num_cons = 0
5757
cons_exprs = map(cons_eqs) do cons_eq
5858
e = symbolify(ModelingToolkit.Symbolics.toexpr(cons_eq))
5959
rep_pars_vals!(e, pairs_arr)
60-
return Expr(:call, :(==), e.args[2], :0)
60+
return Expr(:call, :(==), e.args[3], :0)
6161
end
6262
end
6363

0 commit comments

Comments
 (0)