Forum Discussion
FICO
2 years agoCommunity Manager
Xpress Optimizer Memory Issue and Configuration
Hi, We are using FICO Xpress optimizer version 8.12.3 in dot net C#. So we are using the BCL library along with the optimizer library. We are containerizing the dot net service in a Linux container...
FICO
2 years agoCommunity Manager
In order to correctly handle memory in C# BCL, make sure you Dispose() as soon as possible of any BCL objects that implement the IDisposable interface. For example, wrap them in a "using" block.
You may also want to use the XPRBexprContext class to make sure you get rid of XPRBexpr instances, which may otherwise a bit hard to assert.
In general, no special code should be required when running on Linux.
You may also want to switch to a more recent version of Xpress since some things about memory management improved in the last releases.
Finally, in version 9.4 a new C# API was introduced that is similar but more flexible than BCL. It also has a smaller memory footprint than BCL. You can find the details about this here.

