I develop a simulation script for optimization where each function evaluation is a simulation. Usually the speed can be improved considerably by only allow the simulation to store results in the RAM memory and thus avoid writing to the hard disc. How can this be done using FMPy?
When I use PyFMI the corresponding commands are:
opts_fast = mode.simulate_options()
opts_fast['result_handling'] = 'memory'
and the simulation is done with
sim_res = model.simulate(final_time=1 , options=opts_fast)