Skip to content

Commit

Permalink
work around equality bounds in coupling
Browse files Browse the repository at this point in the history
(as produced by mgPipe)
  • Loading branch information
exaexa committed May 18, 2024
1 parent 50f6ffa commit b9eceed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/base/types/MATModel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ function coupling_bounds(m::MATModel)
sparse(fill(-Inf, nc)),
sparse(reshape(m.mat["b"], length(m.mat["b"]))[n_reactions(m)+1:end]),
)
elseif haskey(m.mat, "d")
(
sparse(reshape(get(m.mat, "d", fill(-Inf, nc, 1)), nc)),
sparse(reshape(get(m.mat, "d", fill(Inf, nc, 1)), nc)),
)
else
(
sparse(reshape(get(m.mat, "cl", fill(-Inf, nc, 1)), nc)),
Expand Down

0 comments on commit b9eceed

Please sign in to comment.