Forum Discussion
FICO
10 years agoCommunity Manager
Parallel processing in Xpress
Hi everyone! I am trying to run submodels in parallel in xpress and I am experiencing a few issues. 1 - Can I define a constant value of a submodel with a command line: for instance: run(myMod,t=2...
FICO
10 years agoCommunity Manager
1 - You can set runtime parameters for submodels directly with the "run" command of mmjobs:
run(myMod, "t=2,mystring='some text'")
or via "setmodpar":
declarations
params:text
end-declarations
setmodpar(params, "t", 2)
setmodpar(params, "mystring", "some text")
run(myMod, params)
2/3 - Does your master model "wait" for submodel termination - or for some other event message sent by the submodel to signal that data are available for reading?
Please take a look at the example FICO Xpress Examples Repository: Working with multiple models: submodels, coordination, communication, and parallelizati… (http://examples.xpress.fico.com/example.pl?id=mosel_solv_9_12) documented in Section 2.7 "Communication of data between different models" of the whitepaper "Multiple models and parallel solving with Mosel" (contained in the "docs" subdirectory of the standard Xpress distribution) or section 17.2.3 "Exchanging data between models" of the Mosel User Guide ( FICO Xpress Examples Repository: Calculating prime numbers (http://examples.xpress.fico.com/example.pl?id=mosel_xprd_prime_0_m)).

