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

Implement issubset between two representations #304

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add error
blegat committed Apr 23, 2022

Verified

This commit was signed with the committer’s verified signature.
commit 006ed0bc70450c86c41fb0fe39a031df829c65d8
3 changes: 3 additions & 0 deletions src/repelemop.jl
Original file line number Diff line number Diff line change
@@ -229,6 +229,9 @@ end
Base.issubset(p::VRepresentation, q::HRepresentation, args...) = issubseth(p, q, args...)
Base.issubset(p::HRepresentation, q::HRepresentation, args...) = issubseth(p, q, args...)
Base.issubset(p::VRepresentation, q::VRepresentation, args...) = issubsetv(p, q, args...)
function Base.issubset(p::HRepresentation, q::VRepresentation, args...)
error("`issubset(h::HRepresentation, v::VRepresentation)` is not supported, use representation conversion for at least one of the two arguments, e.g., by doing `import HiGHS; issubset(h, polyhedron(v), HiGHS.Optimizer)`.")
end

"""
issubset(p::Rep, q::Rep)