Commit 9961dd0f authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

update MATModel to dense bounds

parent 683ef33f
......@@ -59,8 +59,8 @@ stoichiometry(m::MATModel) = sparse(m.mat["S"])
Extracts bounds from the MAT file, saved under `lb` and `ub`.
"""
bounds(m::MATModel) = (
sparse(reshape(get(m.mat, "lb", fill(-Inf, n_reactions(m), 1)), n_reactions(m))),
sparse(reshape(get(m.mat, "ub", fill(Inf, n_reactions(m), 1)), n_reactions(m))),
reshape(get(m.mat, "lb", fill(-Inf, n_reactions(m), 1)), n_reactions(m)),
reshape(get(m.mat, "ub", fill(Inf, n_reactions(m), 1)), n_reactions(m)),
)
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment