Note
Go to the end to download the full example code.
Parallel ProcessingΒΆ
You should be able to treat models like any other function in terms of
parallelization. This example shows using the built-in multiprocessing
to do
process-based parallelization of an explicit system.
ModelInput(x=1) ModelOutput(y=array([2.]))
ModelInput(x=2) ModelOutput(y=array([1.]))
ModelInput(x=3) ModelOutput(y=array([-2.]))
Total running time of the script: (0 minutes 0.121 seconds)