Skip to content

Commit

Permalink
fix input for linprog
Browse files Browse the repository at this point in the history
  • Loading branch information
mforets committed Jan 29, 2022
1 parent 6dc3079 commit a3b879e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Approximations/overapproximate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1545,8 +1545,9 @@ function _overapproximate_zonotope_vrep(X::LazySet{N},
end
col_offset_b += m
end
lower_bounds = vcat(zeros(N, l), fill(N(-Inf), nvariables - l))
lp = linprog(obj, A, sense, b, lower_bounds, Inf, solver)
lbounds = vcat(zeros(N, l), fill(N(-Inf), nvariables - l))
ubounds = fill(Inf, nvariables)
lp = linprog(obj, A, sense, b, lbounds, ubounds, solver)

if !is_lp_optimal(lp.status)
error("got unexpected status from LP solver: $(lp.status)")
Expand Down

0 comments on commit a3b879e

Please sign in to comment.