Running the simulator as a function call

See the tutorial on MÆSTRO with simpleapp for more details on how to run the MÆSTRO algorithm where the simulator is called using a function call