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,
it can take quite a while until a fix is available in an official patch release (especially due to the holidays), so please go ahead and try to use a single xprm instance for the entire multi-processed application. Unfortunately, the documentation isn't very precise about whether this is supported or not, so I also asked the maintainers to improve the doc. I had a quick look at the source of XPRM and tested a single xprm instance in my multi-threaded toy application and it worked as expected and solved the issue that you observed. So I think this should also solve it on your side.
Let me know if this doesn't solve the issue for you!
Regards,
Johannes