Originally posted by: EvanSmith
Hello,
I have been using the standard API to dump say 10000 solutions from my pool
for i in range(min(numsol, 10000)):
filename = "%s/solution_%s.xml" % (root_folder, names[i])
if i % 50 == 0:
print("%s) Save solution %s to %s" % (i, names[i], filename))
c.solution.pool.write(filename, i)
I am finding my RAM explodes when I hit this part of my code. How can I
1) save as say JSON object JUST the decision variables. Instead of the code above which saves XML
2) how can I keep the memory under control (or use disk) at the point I hit the solution pool dump
Thanks!
#CPLEXOptimizers#DecisionOptimization