Skip to content

Commit

Permalink
Use acyclic coloring by default for benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Aug 16, 2024
1 parent 778833d commit bdaa378
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sparse_hessian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function SparseADHessian(
ncon,
c!;
x0::AbstractVector = rand(nvar),
coloring_algorithm::AbstractColoringAlgorithm = GreedyColoringAlgorithm{:direct}(),
coloring_algorithm::AbstractColoringAlgorithm = GreedyColoringAlgorithm{:substitution}(),
detector::AbstractSparsityDetector = TracerSparsityDetector(),
kwargs...,
)
Expand All @@ -45,7 +45,7 @@ function SparseADHessian(
c!,
H::SparseMatrixCSC{Bool, Int64};
x0::S = rand(nvar),
coloring_algorithm::AbstractColoringAlgorithm = GreedyColoringAlgorithm{:direct}(),
coloring_algorithm::AbstractColoringAlgorithm = GreedyColoringAlgorithm{:substitution}(),
kwargs...,
) where {S}
T = eltype(S)
Expand Down Expand Up @@ -139,7 +139,7 @@ function SparseReverseADHessian(
ncon,
c!;
x0::AbstractVector = rand(nvar),
coloring_algorithm::AbstractColoringAlgorithm = GreedyColoringAlgorithm{:direct}(),
coloring_algorithm::AbstractColoringAlgorithm = GreedyColoringAlgorithm{:substitution}(),
detector::AbstractSparsityDetector = TracerSparsityDetector(),
kwargs...,
)
Expand All @@ -154,7 +154,7 @@ function SparseReverseADHessian(
c!,
H::SparseMatrixCSC{Bool, Int};
x0::AbstractVector{T} = rand(nvar),
coloring_algorithm::AbstractColoringAlgorithm = GreedyColoringAlgorithm{:direct}(),
coloring_algorithm::AbstractColoringAlgorithm = GreedyColoringAlgorithm{:substitution}(),
kwargs...,
) where {T}
problem = ColoringProblem{:symmetric, :column}()
Expand Down

0 comments on commit bdaa378

Please sign in to comment.