Skip to content

Commit 507b369

Browse files
authored
change back sparsity factor
Former-commit-id: e199514
1 parent 49dbccb commit 507b369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/nearestpsd/JuMP.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ example_tests(::Type{NearestPSDJuMP{Float64}}, ::SlowInstances) = [
6565

6666
function build(inst::NearestPSDJuMP{T}) where {T <: Float64} # TODO generic reals
6767
side = inst.side
68-
sparsity = min(5 / side, 1.0) # sparsity factor (before computing optional chordal extension) TODO make option
68+
sparsity = min(3.0 / side, 1.0) # sparsity factor (before computing optional chordal extension) TODO make option
6969

7070
# generate random symmetric A (indefinite) with sparsity pattern E (nonchordal, with diagonal)
7171
A = tril!(sprandn(side, side, sparsity)) + Diagonal(randn(side))

0 commit comments

Comments
 (0)