I am trying to optimize a model for 250 different price scenarios using a loop. At the beginning, XPRESS can handle 5 scenarios within a minute, but then the memory starts to increase, the runs get slower and after 50 scenarios, XPRESS starts to solve a single scenario in 5 minutes. How can I clean the memory at the end of each iteration?
Thank you very much,
Ahu
I know this is an old post, but could you wrap the optimization within a procedure and loop through the scenarios?
From slightly dated docs: