From bdaa3785d12dbba03bfaf5326a14bb34513f6d0b Mon Sep 17 00:00:00 2001 From: Alexis Montoison Date: Thu, 15 Aug 2024 22:31:33 -0400 Subject: [PATCH] Use acyclic coloring by default for benchmarks --- src/sparse_hessian.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sparse_hessian.jl b/src/sparse_hessian.jl index 5e7787ee..484ea16e 100644 --- a/src/sparse_hessian.jl +++ b/src/sparse_hessian.jl @@ -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..., ) @@ -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) @@ -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..., ) @@ -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}()