-
Notifications
You must be signed in to change notification settings - Fork 33
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
#416 - Conversion from Zonotope to HPolytope #958
Conversation
This efficient conversion is a great feature to have, i look forward to reviewing it. |
I think it is far from efficient, but the problem is just hard. |
I realized that I added the |
a4753e4
to
3cf7e59
Compare
I just renamed the variable name for |
3cf7e59
to
82fb724
Compare
Co-Authored-By: schillic <schillic@informatik.uni-freiburg.de>
Co-Authored-By: schillic <schillic@informatik.uni-freiburg.de>
Co-Authored-By: schillic <schillic@informatik.uni-freiburg.de>
i think that the EDIT: Actually, # uses dual rep
function convert(::Type{HPolytope}, P::AbstractPolytope)
return convert(HPolytope, convert(VPolytope, P))
end
# may or may not use dual rep depending on the implementation of constraints_list
function convert(::Type{HPolyhedron}, P::AbstractPolytope)
return HPolyhedron(constraints_list(P))
end Let me note that this would also make sense: function convert(::Type{HPolytope}, P::AbstractPolytope)
return HPolytope(constraints_list(P))
end I don't know for sure which implementation we should pick. Maybe it is better to have both implementations available through a kwarg. (I tend to think that the implem that calls the Since this is a bit out of the scope of a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I finished reviewing it all, well done! 👏
It won't be hard to re-use this code with parallelotopes.
As suggested below, while we are at this let's fix the case m=n
before merging. I also left three ideas to make it faster.
No need for that. In #932 we want to use |
Closes #416.