Forum Discussion
FICO
3 years agoCommunity Manager
new XPRM() initialization error in multi-threaded Java programs
Hi, I wrote a multi-threaded Java program to run a large number of small MIP problems. Occasionally, the XPRM() initialization fails at this line: XPRM xprm = new XPRM(); When I print the error sta...
FICO
3 years agoCommunity Manager
Hi Jie,
we can now reproduce it on our side. I will forward the issue to the maintainers of the Mosel Java API and they will look at it as soon as possible.
In the meantime, could you please try to create a single xprm instance for your entire process, instead of creating a new instance for each thread or model? Does that resolve your issue?
Regards, Johannes