Hello Jannick,
I have answered the previous message through e-mail, attaching the sample code, but probably you have not gotten the answer.
The CalcPreDespacho class is the one that calls Optano to prepare the model and call the GLPK solver.
Answering your questions about the rounds: the problem occurs after some repeated calls to the glpkSolver.Solve.
I have tried to call some "dispose" methods, etc. with no success. After each round, the memory increases by 250MB.
When closing the application, all memory is flushed, so If you run the application again, the problem will occur after some rounds have been performed.
Basically, the optimization problem is fed by tons of data (a 9076x9076 double matrix, for example), and the optimization runs interactively using some data from the previous run.
The application does this simulation for some scenarios and months. Considering 6 scenarios and 12 months, the application requires 48GB of memory to run without any issues.
The main classes to observe are Engine, CalcParams, and CalcPreDespacho. CalcPreDespacho is the one who calls the Optano Solver.
Please let me know if you need any additional information.
Thank you for your attention and Best Regards,
Marcelo.