Skip to content

Commit 15d897d

Browse files
authored
Upgrade to ColPack v0.4 (#235)
* Update to ColPack v0.4
1 parent a858c6b commit 15d897d

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
*.jl.mem
33
docs/build
44
docs/site
5+
Manifest.toml

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
1212
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1313

1414
[compat]
15-
ColPack = "0.3"
15+
ColPack = "0.4"
1616
ForwardDiff = "0.9.0, 0.10.0"
1717
NLPModels = "0.18, 0.19, 0.20, 0.21"
1818
Requires = "1"

docs/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ OptimizationProblems = "5049e819-d29b-5fba-b941-0eee7e64c1c6"
1010
Percival = "01435c0c-c90d-11e9-3788-63660f8fbccc"
1111
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
1212
SolverBenchmark = "581a75fa-a23a-52d0-a590-d6201de2218a"
13+
SymbolicUtils = "d1185830-fcd6-423d-90d6-eec64667417b"
1314
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
1415
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
1516

@@ -23,5 +24,6 @@ OptimizationProblems = "0.7"
2324
Percival = "0.7"
2425
Plots = "1"
2526
SolverBenchmark = "0.5"
27+
SymbolicUtils = "=1.5.1"
2628
Symbolics = "5.3"
2729
Zygote = "0.6.62"

src/ad.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,8 @@ end
510510

511511
function ColPackColoration(;
512512
partition_choice = (m, n) -> false, # TODO: (m, n; μ = 0.6) -> n < μ * m ? true : false,
513-
coloring::ColPack.AbstractColoring = d1_coloring("DISTANCE_ONE"),
514-
ordering::ColPack.AbstractOrdering = incidence_degree_ordering("INCIDENCE_DEGREE"),
513+
coloring::ColPack.ColoringMethod = d1_coloring(),
514+
ordering::ColPack.ColoringOrder = incidence_degree_ordering(),
515515
)
516516
return ColPackColoration{typeof(partition_choice), typeof(coloring), typeof(ordering)}(
517517
partition_choice,

test/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ NLPModelsTest = "7998695d-6960-4d3a-85c4-e1bceb8cd856"
1010
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
1111
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1212
SparseDiffTools = "47a9eef4-7e08-11e9-0b38-333d64bd3804"
13+
SymbolicUtils = "d1185830-fcd6-423d-90d6-eec64667417b"
1314
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
1415
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1516
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
@@ -25,4 +26,5 @@ NLPModelsTest = "0.10"
2526
ReverseDiff = "1"
2627
SparseDiffTools = "2.3"
2728
Symbolics = "5.3"
29+
SymbolicUtils = "=1.5.1"
2830
Zygote = "0.6"

0 commit comments

Comments
 (0)