cvxpygen icon indicating copy to clipboard operation
cvxpygen copied to clipboard

Feature request: Add Support for Positive Semidefinite Cone Problem

Open Charlescai123 opened this issue 5 months ago • 1 comments

HI, I'm currently attempting to use the SCS solver for generating C code from a PSD cone problem. However, I encountered the following error:

Image

It appears that the current version does not yet support code generation for problems involving PSD cones. I also tried switching to the CVXOPT solver, but it seems that code generation isn't supported there either.

I’m reaching out to ask whether there are plans to support code generation for such problem classes in the near future, or if there are any suggested alternatives for handling this use case.

Thank you for your time and consideration.

Best, Yihao Cai

Charlescai123 avatar Jun 19 '25 16:06 Charlescai123

Correct, CVXPYgen supports code generation for LPs, QPs, and SOCPs. I am not aware of developments for SDPs. In the meantime, you could approximate your SDP as an SOCP, or use CVXPY.

maxschaller avatar Jun 21 '25 11:06 maxschaller