cvxpygen icon indicating copy to clipboard operation
cvxpygen copied to clipboard

EXP constraints with ECOS/SCS solver

Open TheZeyuanFeng opened this issue 2 months ago • 2 comments

Thanks for the amazing work! It really helped me speeding up my MPC algorithms.

Currently, I'm trying to generate the c code for an optimization problem with exp constraints. However, both ECOS and SCS solver do not support exp cones, while I'm running into a constraint dimension mismatch error when using the Clarabel solver : thread '<unnamed>' panicked at xxxx/nonneg_LS/c/solver_code/Clarabel.rs/src/solver/implementations/default/solver.rs:101:5: Constraint dimensions inconsistent with size of cones. note: run with RUST_BACKTRACE=1 environment variable to display a backtrace free(): invalid pointer Aborted (core dumped)

I spent quite some time but couldn't figure out a solution. With that, I wonder if you are planning to support exp cones in the near future?

TheZeyuanFeng avatar Oct 13 '25 05:10 TheZeyuanFeng

We are not planning to support exponential cones in the near future. However, you are always encouraged to continbute new features. In the meantime, can you model your problem with second-order cones as well?

maxschaller avatar Oct 15 '25 01:10 maxschaller

Unfortunately, we can't model the problem with second-order cones. But we managed to find an alternative way to speed up our previous implementation. Thanks for the response!

TheZeyuanFeng avatar Oct 22 '25 06:10 TheZeyuanFeng