We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc00048 commit 237fd6cCopy full SHA for 237fd6c
src/lp_sensitivity2.jl
@@ -87,7 +87,11 @@ function lp_sensitivity_report(model::Model; atol::Float64 = 1e-8)
87
l_B = @view std_form.lower[basis.basic_cols]
88
u_B = @view std_form.upper[basis.basic_cols]
89
90
- B_fact = LinearAlgebra.factorize(B)
+ B_fact = if size(B, 1) > 0
91
+ LinearAlgebra.lu(B)
92
+ else
93
+ zeros(Float64, (0, 0))
94
+ end
95
d = Dict{Int,Vector{Float64}}(
96
# We call `collect` here because some Julia versions are missing sparse
97
# matrix \ sparse vector fallbacks.
0 commit comments