You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You appear to be using an outdated version of cvxpy, but I can confirm that the issue occurs with version 1.4 as well. I also tried
expr = cp.sum([cp.Variable(), cp.Variable()] + [0.00001 * i for i in range(2,100000)])
and found that it consumed as similar amount of memory.
We'd need more detailed performance profiling to see what can be done in this situation. I'm not terribly optimistic that this could be accelerated without moving some of cvxpy's logic into C/C++.
Describe the bug
Huge memory consumption in
cp.sum(list)
. I knowcp.sum(cp.hstack(list))
solves the problem, but cancp.sum(list)
be improved?To Reproduce
Output
expr = cp.sum(x)
uses > 30G memory and is super slow.Version
The text was updated successfully, but these errors were encountered: