Using CyLP repeatedly - hogging memory?

119 views Asked by At

I have a program that repeatedly instantiates CyClpSimplex objects (ideally solving tens of thousands of LPs), but my kernel kills the program after ~6000 iterations. I think this is because of excessive memory usage (I'm in a docker container, and indeed hyperkit is currently using 2GB of RAM).

I'm not great at C++, and I have no experience in Cython (what much of CyLP is written in), but I suspect that these CyClpSimplex objects are not being deconstructed. I looked into the source and found that the cython CyClpSimplex class's __dealloc__ function is actually commented out! Does anyone know of a way to free this memory from within python? Am I totally off the mark in my understanding of this problem?

0

There are 0 answers