question

Quirin I2 avatar image
0 Likes"
Quirin I2 asked tannerp commented

Running ouf RAM with MILP-Problem

I have a rather simple simulation with 2 machines where i repeatedly start a Lingo optimization model via a dll command. The optimization decides the quantity of items which will be produced and where they are produced.

However- I'm facing the problem that everytime I call the dll it adds ~6MB to my RAM- till it is full.

So it's not possible to run replications for me.

I delete the pointers of course in the dll.

Any recommandations or advice?

dlloptimizationdll makerram
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Jordan Johnson avatar image
1 Like"
Jordan Johnson answered

I don't know anything about Lingo. It sounds like there is a memory leak somewhere. Depending on the API, you may need to use a function rather than the delete operator directly:

// If the API uses new or malloc(), you should use delete
// If it looks like this:
Data* data;
initializeData(&data);
// Then there is very likely a companion "destructor" method,
// something like this:
releaseData(data);
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.