Automatically dump .csv data in every optimization iteration of energy simulation

Hi all,

Just wondering, is there any method that allows us to dump the energy simulation data automatically into a .csv file without having to toggle true/false especially if we are using an optimization plugin like Galapagos or Octopus?

Probably have to do it manually, but just curious if there is someone out there who managed to automize it.

Thank you
Regards