IBMDecisionOptimization / docplex-examples

These samples demonstrate how to use the DOcplex library to model and solve optimization problems.
https://ibmdecisionoptimization.github.io/
Apache License 2.0
396 stars 228 forks source link

Constraint of SOCP #92

Open wukong1989 opened 1 year ago

wukong1989 commented 1 year ago

Hi community!

I'm now working on implementation of a optimization which will need SOCP Constraint, as some sort of

||x||_2<=K

Of course, I know we can put as x*x<=K^2, but SOCP should have faster solution in my opinion as it's a classical problem with tons of optimized code on this.

Can anyone help me on how to write correct norm constraint in DOCplex? I have tried square root (**0.5) and it's not working.

Thanks in advance.