Reputation: 49
Have been trying for a long time to search back and forth to find a solution to this, but nothing found that fits my situation.
Until now, I have manually (!!!) written down numerical output from the simulation into documents. This is very tedious as you can imagine, there are 29 KPIs of interest and most are fractional numbers with +3 digits.
Basically, I want to save values at the end of the simulation runs. Once the model has stopped, I want the text either exported to an excel file or at least output in such a way that I can curate the data further.
An example of how the first value is calculated here (under Time to treatment - Tot.) is:
v_N == 0 ? null : roundToDecimal((v_Total_Time_To_Treatment / (v_N*3600.0)), 3)
Update: Based on feedback, I decided to make a 'simple' solution based on print line to console like such:
Upvotes: 0
Views: 77
Reputation: 358
In the settings of the simulation
experiment there is an event called After the simulation run (You will find more details here), you can access your metrics for example: root.MyKPI
.
Using the Excel File object will help you save your metrics to Excel
Upvotes: 2