Dear Dr. Johan Löfberg,
I'm a student major in transportation and operation research. Thanks a lot for your generous and sustaining contribution to the field, which helps students like me to have a powerful tool to solve complex problems. I have used YALMIP for 2 years and it helps me a lot in my research! I can't express my appreciation enough.
However, I have a problem unsolved recently and couldn't find a solution online. Sorry to bother you and I'm very grateful for your time to read my problem. Here is my problem:
I'm solving a dynamic bus scheduling problem and do simulation to test the performance under different scenarios. So I need to call CPLEX several times. The simulations are run on a computer with Intel(R) Core(TM) i5-4460 CPU @ 3.20 GHz 3.20GHz, 16 GB RAM, coded with Matlab R2015b, using YALMIP framework to call CPLEX 12.5.
However, if I set a larger number of times to do simulation, I will encounter the problem as shown in the Figure (I guess the reason to be out-of-memory issue in CPLEX). Since the simulation procedure are mutually independent, I want to clear the memory after every simulation. I'm wondering have you ever clear the memory occupation of CPLEX via MATLAB/YALMIP? Or do you have some experience/method about solving similar problem?

Thank you in advance & I very appreciate your kindness help.
Sincerely,
Xindi