Original Message:
Sent: Thu May 25, 2023 06:56 AM
From: Jo
Subject: Memory Error through multiple optimizations
Hello,
I am a student and I am currently analyzing an optimization written in Cplex. My plan is to run the optimization through a forloop many times. After each model evaluation everything should be reset, so that the next optimization can be started again, uninfluenced by the previous one.
So in the for-loop some input parameters are changed, then the model is formed and solved with opl.generate and solve. At the end of the for-loop I try to close with opl.end, mod.end and all files in which the solution is written with .close.
My question is:
how can i document well what happens and so what goes wrong?
how can I clear the memory between optimizations?
alternatively, how can I run multiple optimizations one after the other in an automated way (over 100)?
Thank you very much for the help!