AnyLogic:如何计算行人行驶距离? [英] AnyLogic: How to calculate pedestrian traveled distance?

查看:68
本文介绍了AnyLogic:如何计算行人行驶距离?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何特定方法(除了自己编写函数)来计算行人库中 ped 对象的行进距离,例如 Road Traffic Library 中的 getDistanceDriven() 方法?

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?

推荐答案

除了自己编码之外,我只能想到一种方法:使用日志模型执行"功能.只需单击项目视图上的数据库并勾选框:

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:

.

然后运行您的模型,它将在 dbase 视图agent_movement_stats_log"中记录每个代理行进的距离.请注意,您可以关闭不需要的任何其他日志...

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...

这篇关于AnyLogic:如何计算行人行驶距离?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆