The SamUL script in the attached file demonstrates how to use the function mpsimulate() to run simulations with multiple processor cores to speed up scripts that take a long time to run on computers with multi-core processors.
You can also speed up simulations in SamUL by using simulate(false) in place of simulate(). When you use the function with the false parameter, SAM does not update the hourly results in the user interface, which saves saves time and memory. Unless you are switching between the SamUL script and the case to view results, you won't need the user interface results.
Best regards,
Paul.