Skip to content

Commit

Permalink
desparsify coupling bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
exaexa committed Jun 8, 2024
1 parent 93a4e37 commit d122cea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/base/types/MATModel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ function coupling_bounds(m::MATModel)
)
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)),
reshape(get(m.mat, "d", fill(-Inf, nc, 1)), nc),
reshape(get(m.mat, "d", fill(Inf, nc, 1)), nc),
)
else
(
sparse(reshape(get(m.mat, "cl", fill(-Inf, nc, 1)), nc)),
sparse(reshape(get(m.mat, "cu", fill(Inf, nc, 1)), nc)),
reshape(get(m.mat, "cl", fill(-Inf, nc, 1)), nc),
reshape(get(m.mat, "cu", fill(Inf, nc, 1)), nc),
)
end
end
Expand Down

0 comments on commit d122cea

Please sign in to comment.