I have attached the .3dm and .gh file.
Parameter "a" will be from 1.5 to 8.
If I want to calculate DF automatically according to different "a", how to make it?
I made 2 targeted changes to your definition.
1. I used the A parameter to write a new project name for each simulation. This means you can go back and pull the results of more lengthy simulations without overwriting them. Your DF calculations are very fast however.
2. I hooked 'Data Recorder' components to the output. In the example above, I animated your A slider for 100 steps, and I got 100 recorded outputs as a result. These outputs can be streamed from the panel to a text file for further analysis in Excel or other programs.
Attached is also the modified definition.
Thank you Alstan
In your file, we need to drag the slider to change "a" and then the program could record all parapeters and results.
But when the model is complex and calculation at high definition, it will run slow each time.
I think it will be better if the slider could move automatically, so that I can leave it running all day.
and I found Galapagos tool can move the slider number automatically, but the slider goes random every time.
Is there any other tool can make changing input automatically to replace a silder?
Right click on the slider and click 'animate.' This will run through the slider in a series of intervals to do what you wish. I didn't record those 100 values by moving the slider one at a time.
Thank you! It is exactly what I want!