Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle authored and amontoison committed Jun 11, 2024
1 parent 6a180ed commit fb10063
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sparse_hessian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,14 @@ function SparseReverseADHessian(
ncon,
c!;
x0::AbstractVector{T} = rand(nvar),
alg = ColPackColoration(),
alg::AbstractColoringAlgorithm = GreedyColoringAlgorithm(),
detector::AbstractSparsityDetector = TracerSparsityDetector(),
kwargs...,
) where {T}
H = compute_hessian_sparsity(f, nvar, c!, ncon, detector = detector)

colors = sparse_matrix_colors(H, alg)
# TODO: use ADTypes.symmetric_coloring instead if you have the right decompression
colors = ADTypes.column_coloring(H, alg)
ncolors = maximum(colors)

d = BitVector(undef, nvar)
Expand Down

0 comments on commit fb10063

Please sign in to comment.