| |||||||||
Working with multiple models: submodels, coordination, communication, and parallelization Description The Mosel module mmjobs enables the user to
work with several models concurrently. We show here
a series of examples of basic tasks that typically need
to be performed when working with several models in Mosel: Parallel computing:
Source Files By clicking on a file name, a preview is opened at the bottom of this page. runsubpip.mos (!******************************************************* Mosel Example Problems ====================== file runsubpip.mos `````````````````` Running a model from another Mosel model. Communication of data to/from submodel using 'mempipe' IO driver. (c) 2008 Fair Isaac Corporation author: S. Heipcke, May 2006 *******************************************************!) model "Run model testsubpip" uses "mmjobs" declarations modSub: Model A = 30..40 B: array(A) of real end-declarations ! Compile the model file if compile("testsubpip.mos")<>0 then exit(1); end-if load(modSub, "testsubpip.bim") ! Load the bim file run(modSub) ! Start model execution initializations to "mempipe:indata" A end-initializations initializations from "mempipe:resdata" B end-initializations wait ! Wait for model termination dropnextevent ! Ignore termination event message writeln(B) end-model | |||||||||
© Copyright 2024 Fair Isaac Corporation. |