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

Fix RSOCtoPSD bridge for dimension 2 #2359

Merged
merged 3 commits into from
Dec 14, 2023
Merged

Fix RSOCtoPSD bridge for dimension 2 #2359

merged 3 commits into from
Dec 14, 2023

Conversation

blegat
Copy link
Member

@blegat blegat commented Dec 13, 2023

With this MultiSetMapBridge, it should be easy to fix other similar case, e.g., SecondOrderCone(1) -> Nonnegatives(1) while SecondOrderCone(2) -> RotatedSecondOrderCone(2) but we can wait for someone or for a test (like in this case) requesting to fix these corner cases before doing it.

@odow
Copy link
Member

odow commented Dec 13, 2023

I've hit this a few times, and always seen this choice as intentional.

@blegat
Copy link
Member Author

blegat commented Dec 13, 2023

Yes I'm also hitting this often. When you have a code generating socs of various dimensions and one if them is t^2 >= x^2, it is bridged to RSOC and it tries to bridge from RSOC to PSD and you get this error. Anothet use case of this MultiSetMap is to have faster reformulations. For instance, in Sumofsquares, I reformulate 2x2 psd into socs instead of psd since it's faster

@odow
Copy link
Member

odow commented Dec 13, 2023

Are you up late working on this? Otherwise I will push forward this afternoon

@odow
Copy link
Member

odow commented Dec 14, 2023

@blegat blegat merged commit 2fb6eb2 into master Dec 14, 2023
56 of 59 checks passed
@blegat blegat deleted the bl/rsoc_to_psd_2 branch December 14, 2023 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants