AnyLogic getHomeLocation() 错误 "Undefined for the type"

AnyLogic getHomeLocation() error "Undefined for the type"

我正在使用 AnyLogic 8 University 8.7.0 版本并进行基于代理的建模。我已经创建了一个自动代理资源池,我想将汽车 (GISPoints) 的初始位置存储在一个变量中。使用 unit.getHomeLocation() 方法给我错误:“方法 getHomeLocation() 未定义为自动类型”。这里,"unit" 是 Auto 类型的 ResourcePool 单元的名称。

对此的任何解决方法都会非常有帮助。谢谢

转到您的项目浏览器,单击代理“Auto”。在其属性中,在 Agent in flowcharts 选项卡下确保 Use in flowcharts as: 指定为“资源单位”。

让我知道这是否解决了问题。