PowerNetworkMatrices.jl icon indicating copy to clipboard operation
PowerNetworkMatrices.jl copied to clipboard

sparsify is very slow

Open alefcastelli opened this issue 1 year ago • 0 comments

consider changing the "sparsify" function (invoked when argument "tol" of PTDF is set) in the following way:

-get the ptdf.data -data = sparse(ptdf.data) -data.nzval[abs.(data.nzval) <= tol] .= 0 -SparseArrays.dropzeros!(data)

alefcastelli avatar Sep 29 '23 05:09 alefcastelli