Skip to content

Commit b94b961

Browse files
Update optimizationsystem.jl
1 parent bf411e3 commit b94b961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/optimization/optimizationsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function DiffEqBase.OptimizationProblem{iip}(sys::OptimizationSystem, u0map,
215215
@named cons_sys = NonlinearSystem(sys.constraints, dvs, ps)
216216
cons = generate_function(cons_sys, checkbounds = checkbounds,
217217
linenumbers = linenumbers,
218-
expression = Val{false})[1]
218+
expression = Val{false})[2]
219219
cons_j = generate_jacobian(cons_sys; expression = Val{false}, sparse = sparse)[2]
220220
cons_h = generate_hessian(cons_sys; expression = Val{false}, sparse = sparse)[2]
221221

0 commit comments

Comments
 (0)