Skip to content

Commit

Permalink
fix error in detecting tighter constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Nov 7, 2018
1 parent 0c7b65a commit 0fc3c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/concrete_intersection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function intersection(P1::AbstractHPolygon{N},
return false
end
@inline function is_first_constraint_tighter(lc1, lc2)
return lc1.a[1]/lc1.b <= lc2.a[1]/lc2.b
return lc1.b <= lc1.a[1]/lc2.a[1] * lc2.b
end

c1 = constraints_list(P1)
Expand Down

0 comments on commit 0fc3c46

Please sign in to comment.