uoa-ems-research / JEMSS.jl

Julia package for Emergency Medical Services Simulation
Apache License 2.0
13 stars 4 forks source link

Detailed distance in the simulation ¿? #78

Open dsa27solver opened 1 month ago

dsa27solver commented 1 month ago

Hello Sam. Would you be so kind to help me with this?: The parameter “ambs_avgDailyGoingToCallDistanceKms” is a daily average? Or it is the total distance of the simulation? Because the numbers I receive in the output-file “stats_dict.csv” seem to be too big for being a daily average (see screenshot attached – 324154 kms for 10 ambulances simulation).

And on the other side: I would like to get in the simulation a detailed distance of every call (emergency) for example adding the kms (distance) from “ambgoingtocall” of each call in the detailed “calls.csv” output-file... is this possible?

Thank you very much for your attention and help. Best regards.

image

samridler commented 1 month ago

Hi Daniel, the ambs_avgDailyGoingToCallDistanceKms is a daily average. Would 324 km per ambulance per day seem reasonable? I would guess that the distances in your arcs.csv file are in metres but they should be in kilometres.

As for your other question, jemss doesn't record things like the distance from “ambgoingtocall” of each call. That is something you would need to add; I think you could add a field to the Call type and modify the setAmbStatus! method so that if the ambulance was previously going to a call then the distance it travelled is added to the corresponding call (ambulance.callIndex).