I am trying to automate a simulation that I have to run 1,000 times to do a sensitivity analysis. I would much rather not have to manually press “run” 1,000 times, but am running into an issue. I am using PANDO, which is all in Python components currently. The script has two parts, an input part where you input your variables into several components. Each of these components has a boolean toggle set to TRUE. When you update these components, they write .dat files to the specified folder. They also create a “run maespa.bat” file, which you must run after putting in your inputs.
I am looking for a way to automate it so that grasshopper automatically calls the batch file after each iteration of the inputs. See here some screenshots:
I have all of these components, and I will be changing 7 inputs. I already have that figured out on how to automate.
These components make the following folder:
The batch file has to be run for the simulation to commence.
I need a way for Grasshopper to automatically run this batch file upon creation, and then run it again x number of times after each time I change the variables.
This then feeds into a “read” results, which is set to “true” and the output I am worried about is Tcan, which is fed into an RMSE script that is recorded.
I need to have 1,000 RMSE #s at the end that I can then run a sensitivity analysis on.
Thanks in advance!