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

#725 - Add constraints_list of VPolygon and VPolytope #726

Merged
merged 3 commits into from
Oct 7, 2018
Merged

Conversation

mforets
Copy link
Member

@mforets mforets commented Oct 6, 2018

Closes #725.

@mforets mforets requested a review from schillic October 6, 2018 21:22
Copy link
Member

@schillic schillic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the VPolytope method into the Polyhedra condition?


# test constraints list of a VPolygon
vp = tovrep(hp)
@test constraints_list(vp) == hp.constraints
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not have to hold, but ispermutation(...) should hold.

@mforets
Copy link
Member Author

mforets commented Oct 6, 2018

Move the VPolytope method into the Polyhedra condition?

Hmm i'd like to pull out as much as possible from that condition, keeping inside it only the code that breaks without the import statements. The "caller" code will see more more messages of the form "the method X needs the package 'Polyhedra' to be loaded" instead of MethodError no method matching X.

@schillic schillic merged commit d0e927e into master Oct 7, 2018
@schillic schillic deleted the mforets/725 branch October 7, 2018 05:23
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.

2 participants