@@ -65,7 +65,7 @@ function instantiate_function(
65
65
function hess (res, θ)
66
66
hessian! (f. f, res, prep_hess, soadtype, θ, Constant (p))
67
67
end
68
- hess_sparsity = prep_hess. coloring_result. S
68
+ hess_sparsity = prep_hess. coloring_result. A
69
69
hess_colors = prep_hess. coloring_result. color
70
70
71
71
if p != = SciMLBase. NullParameters () && p != = nothing
@@ -147,7 +147,7 @@ function instantiate_function(
147
147
J = vec (J)
148
148
end
149
149
end
150
- cons_jac_prototype = prep_jac. coloring_result. S
150
+ cons_jac_prototype = prep_jac. coloring_result. A
151
151
cons_jac_colorvec = prep_jac. coloring_result. color
152
152
elseif cons_j === true && f. cons != = nothing
153
153
cons_j! = (J, θ) -> f. cons_j (J, θ, p)
@@ -185,7 +185,7 @@ function instantiate_function(
185
185
prep_cons_hess = [prepare_hessian (cons_oop, soadtype, x, Constant (i))
186
186
for i in 1 : num_cons]
187
187
colores = getfield .(prep_cons_hess, :coloring_result )
188
- conshess_sparsity = getfield .(colores, :S )
188
+ conshess_sparsity = getfield .(colores, :A )
189
189
conshess_colors = getfield .(colores, :color )
190
190
function cons_h! (H, θ)
191
191
for i in 1 : num_cons
@@ -204,7 +204,7 @@ function instantiate_function(
204
204
lag_prep = prepare_hessian (
205
205
lagrangian, soadtype, x, Constant (one (eltype (x))),
206
206
Constant (ones (eltype (x), num_cons)), Constant (p))
207
- lag_hess_prototype = lag_prep. coloring_result. S
207
+ lag_hess_prototype = lag_prep. coloring_result. A
208
208
lag_hess_colors = lag_prep. coloring_result. color
209
209
210
210
function lag_h! (H:: AbstractMatrix , θ, σ, λ)
@@ -357,7 +357,7 @@ function instantiate_function(
357
357
function hess (θ)
358
358
hessian (f. f, prep_hess, soadtype, θ, Constant (p))
359
359
end
360
- hess_sparsity = prep_hess. coloring_result. S
360
+ hess_sparsity = prep_hess. coloring_result. A
361
361
hess_colors = prep_hess. coloring_result. color
362
362
363
363
if p != = SciMLBase. NullParameters () && p != = nothing
@@ -410,7 +410,7 @@ function instantiate_function(
410
410
end
411
411
return J
412
412
end
413
- cons_jac_prototype = prep_jac. coloring_result. S
413
+ cons_jac_prototype = prep_jac. coloring_result. A
414
414
cons_jac_colorvec = prep_jac. coloring_result. color
415
415
elseif cons_j === true && f. cons != = nothing
416
416
cons_j! = (θ) -> f. cons_j (θ, p)
@@ -459,7 +459,7 @@ function instantiate_function(
459
459
return H
460
460
end
461
461
colores = getfield .(prep_cons_hess, :coloring_result )
462
- conshess_sparsity = getfield .(colores, :S )
462
+ conshess_sparsity = getfield .(colores, :A )
463
463
conshess_colors = getfield .(colores, :color )
464
464
elseif cons_h == true && f. cons != = nothing
465
465
cons_h! = (res, θ) -> f. cons_h (res, θ, p)
@@ -482,7 +482,7 @@ function instantiate_function(
482
482
return hess
483
483
end
484
484
end
485
- lag_hess_prototype = lag_prep. coloring_result. S
485
+ lag_hess_prototype = lag_prep. coloring_result. A
486
486
lag_hess_colors = lag_prep. coloring_result. color
487
487
488
488
if p != = SciMLBase. NullParameters () && p != = nothing
0 commit comments