|
|
|
@ -58,6 +58,7 @@ function compute_tableau(
|
|
|
|
|
x::Union{Nothing,Vector{Float64}} = nothing,
|
|
|
|
|
rows::Union{Vector{Int},Nothing} = nothing,
|
|
|
|
|
tol = 1e-8,
|
|
|
|
|
estimated_density = 0.10,
|
|
|
|
|
)::Tableau
|
|
|
|
|
@timeit "Split data" begin
|
|
|
|
|
nrows, ncols = size(data.constr_lhs)
|
|
|
|
@ -78,7 +79,7 @@ function compute_tableau(
|
|
|
|
|
tableau_lhs_I::Array{Int} = Int[]
|
|
|
|
|
tableau_lhs_J::Array{Int} = Int[]
|
|
|
|
|
tableau_lhs_V::Array{Float64} = Float64[]
|
|
|
|
|
estimated_nnz::Int = length(rows) * ncols ÷ 20
|
|
|
|
|
estimated_nnz::Int = round(length(rows) * ncols * estimated_density)
|
|
|
|
|
sizehint!(tableau_lhs_I, estimated_nnz)
|
|
|
|
|
sizehint!(tableau_lhs_J, estimated_nnz)
|
|
|
|
|
sizehint!(tableau_lhs_V, estimated_nnz)
|
|
|
|
|