recruit-communications / pyqubo

Python DSL for constructing QUBOs from mathematical expressions.
https://pyqubo.readthedocs.io/
Apache License 2.0
170 stars 45 forks source link

Memory error in class model on big sizes QUBO #231

Open BorisYamp opened 3 months ago

BorisYamp commented 3 months ago

Describe the bug On Hameltanian with about 2^18 binarys, command "model = H.compile()" causes error "Process finished with exit code -1073740791 (0xC0000409)". But "print(sys.getsizeof(H.compile()))" is 56 with Hameltanian of any size, so, as I understand, 56 bytes is not enough for my Hameltanian, but I do not know how to correct it. If you have any ideas, please tell me.

leishaohu commented 2 months ago

I met a similar question: when I run this
model = H.compile() the memory increases greatly. And the code: del model gc collect() doesn't work! How to solve the problem of memory usage.