# Creating a PSDCone Constraint in COSMO

**URL:** <https://discourse.julialang.org/t/creating-a-psdcone-constraint-in-cosmo/102749>\
**Category:** Optimization (Mathematical)\
**Tags:** package\
**Created:** [August 12, 2023, 4:34pm UTC](https://discourse.julialang.org/t/creating-a-psdcone-constraint-in-cosmo/102749 "2023-08-12T16:34:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![fimiller](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fimiller/32/51226_2.png) [@fimiller](https://discourse.julialang.org/u/fimiller)\
**Post date:** [August 13, 2023, 1:10pm UTC](https://discourse.julialang.org/t/creating-a-psdcone-constraint-in-cosmo/102749/3 "2023-08-13T13:10:52Z")

</div>

Sure thing!

I am trying to follow the solution here: [Out of memory when constructing large sparse SDP in JuMP - #3 by blegat](https://discourse.julialang.org/t/out-of-memory-when-constructing-large-sparse-sdp-in-jump/98332/3)

But, when I try to run the code using the solution you provided, I am still running into memory issues (100% memory on my system is used). Hence, I was investigating whether it would be possible to do this directly in COSMO and avoid creating the n^2 / 2 affine expressions all together.

---

_[View the full topic](https://discourse.julialang.org/t/creating-a-psdcone-constraint-in-cosmo/102749)._
