问题
Is there any specific way (except writing functions myself) to calculate traveled distance of a ped
object in pedestrian library, something like getDistanceDriven()
method in Road Traffic Library?
回答1:
there is only one way I can think of beyond coding it yourself: use the "Log model execution" functionality. Just click on the database on the project view and tick the box:
.
Then run your model and it will record the distance travelled for each agent in the dbase view "agent_movement_stats_log". Note that you can turn off any of the other logs you don't need...
来源:https://stackoverflow.com/questions/53021286/anylogic-how-to-calculate-pedestrian-traveled-distance