File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/OptimizationNLopt/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -232,10 +232,10 @@ function SciMLBase.__solve(cache::OptimizationCache{
232232 if cache. f. cons != = nothing
233233 eqinds = map ((y) -> y[1 ] == y[2 ], zip (cache. lcons, cache. ucons))
234234 ineqinds = map ((y) -> y[1 ] != y[2 ], zip (cache. lcons, cache. ucons))
235- cons_cache = zeros (eltype (res ), sum (eqinds) + sum (ineqinds))
235+ cons_cache = zeros (eltype (cache . u0 ), sum (eqinds) + sum (ineqinds))
236236 thetacache = rand (size (cache. u0))
237237 Jthetacache = rand (size (cache. u0))
238- Jcache = zeros (eltype (J ), sum (ineqinds) + sum (eqinds), length (θ ))
238+ Jcache = zeros (eltype (cache . u0 ), sum (ineqinds) + sum (eqinds), length (cache . u0 ))
239239 evalcons = function (θ, ineqoreq)
240240 if thetacache != θ
241241 cache. f. cons (cons_cache, θ)
You can’t perform that action at this time.
0 commit comments