Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cases: bounding box for unbounded polytope, bounding box for empty polytope #89

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

johnyf
Copy link
Member

@johnyf johnyf commented Feb 21, 2024

For an unbounded polytope, the bounding box has infinite dimensions. For an empty polytope the bounding box is 0, 0. This change follows commit 7f59645, before which 0, 0 were used as endpoints in all these cases. In tulip relevant tests pass with these changes.

@slivingston slivingston self-assigned this Feb 22, 2024
`-np.inf` used as lower bound when unbounded from below,
and `np.inf` as upper bound when unbounded from above.

For an empty polytope, 0 is used as both bounds.
In `matplotlib > 3.5.3`, the parameter `closed` of
`matplotlib.patches.Polygon.__init__()` is a
keyword-only argument.
@johnyf johnyf merged commit 5a125cb into main Feb 22, 2024
8 checks passed
@johnyf
Copy link
Member Author

johnyf commented Feb 22, 2024

Thank you for reviewing the changes, merged.

@johnyf johnyf deleted the inf_bounding_box branch April 15, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants