Forum Discussion
FICO
6 years agoCommunity Manager
Redirect stream in C# with parallel (independant) mosel instances
I have written a c# method "MyMethod" solving a given mosel model and getting solution. At the beginning of "MyMethod", I have : var mosel = XPRM.Init();
mosel.SetDefaultStream(XPRMStreamType.F_...
FICO
6 years agoCommunity Manager
In Mosel, there are global output/error streams shared by all models, that you configure using XPRM.SetDefaultStream, but each model has its own output/error streams that you can set separately using XPRMModel.SetDefaultStream. I would recommend you call XPRMModel.SetDefaultStream to capture the output of each model separately. The only output that would then get written to the 'global' streams would be system-wide errors and failures to load models.