Inquiry about how to clear the memory occupied by CPLEX via YALMIP

71 views
Skip to first unread message

Xindi Tang

unread,
Jul 9, 2017, 9:29:59 AM7/9/17
to YALMIP
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

Johan Löfberg

unread,
Jul 9, 2017, 11:41:50 AM7/9/17
to YALMIP
if it is yalmip chewing up mrmory, you have to do yalmip('clear') before you setup every problem

if it is cplex, you could try clear cplexlink1271 or whatever your cplex binary is called

Johan Löfberg

unread,
Jul 9, 2017, 11:43:33 AM7/9/17
to YALMIP
but this is not necessarily due to memory issues. this could simply be due to the fact that cplex has bugs, and randomly crashes in matlab 2016 and 2017 (does so on my machine). they know about this but haven't managed to fix it
Reply all
Reply to author
Forward
0 new messages