Skip to content

Commit 9197028

Browse files
sparse kwarg
1 parent ef14de6 commit 9197028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/function/mtk.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function instantiate_function(f, x, adtype::AutoModelingToolkit, p, num_cons = 0
1515
num_cons)))
1616
sys = ModelingToolkit.structural_simplify(sys)
1717
f = OptimizationProblem(sys, x, p, grad = true, hess = true,
18-
obj_sparse = adtype.obj_sparse, cons_j = true, cons_h = true,
18+
sparse = adtype.obj_sparse, cons_j = true, cons_h = true,
1919
cons_sparse = adtype.cons_sparse).f
2020

2121
grad = (G, θ, args...) -> f.grad(G, θ, p, args...)

0 commit comments

Comments
 (0)