-
Notifications
You must be signed in to change notification settings - Fork 10
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
compute_polytope_vertices does not work for large matrices #10
Comments
It seems indeed that cdd does not find any vertex. It could be that the set is empty, or the problem hits some numerical issue. One small piece of advice: your NumPy arrays will have an integer datatype, but To go further, I'd recommend you dig into what the function is doing, that is, taking the code out and managing the pycddlib objects directly. For instance rather you can try another number type: Line 137 in e22a7a7
I don't know whether that's the case but it may also be possible to get more verbose outputs from cdd to see why it returns no generator. Hoping this helps! |
Thank you for your reply. Picking up on what you said, to enumerate vertices of a polytope, what's the difference between compute_polytope_vertices from pypoman and poly.get_generators() from pycddlib ? |
|
Problem:
Using the exact same code as in the documentation, but using :
A: 114x14 matrix,
b: a 114x1 matrix,
the function compute_polytope_vertices(A,b) returns an empty array, like if it does not find any vertice of the polytope.
Yet, the two matrices used come from a real problem in which I am pretty sure A and b define a not-empty polytope.
Reproduce the problem:
Question:
@stephane-caron and the developer team, do you have any idea how to solve this issue ?
The text was updated successfully, but these errors were encountered: