通过数据库循环erylogic
在我的模型中,我想循环浏览包含多个列的数据库(见示例)。其背后的想法是我想根据数据库中的行创建动态事件。
,但是我不知道如何通过任何logic中的数据库迭代,也无法找到使用数据库的循环的示例。
我的问题的假码看起来像这样:
For order in orderdatabase:
Create order based on (order.name, order.quantity, order.arrivaltime, order.deliverylocation)
循环中的顺序是数据库的每个行,以及创建的值基于该特定行的不同列值。
有人可以给我一个简单的例子,说明如何为这个特定问题创建这样的循环。
提前致谢。
In my model I want to loop through the database which contains multiple columns (see example) by an event. The idea behind it is that I want to create dynamic events based on the rows in the database.
But I've no clue how to iterate through a database in anylogic and also was not able to find an example of a loop with a database.
The dummycode of my problem would look something like this:
For order in orderdatabase:
Create order based on (order.name, order.quantity, order.arrivaltime, order.deliverylocation)
Where order in the loop is every row of the database, and the value on which the creation is based based on the different column values of that specific row.
Can somebody give me a simple example of how to create such a loop for this specific problem.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用数据库查询向导:
详细信息和示例,请检查示例模型和任何logogic帮助,并详细说明所有选项。
Use the database query wizard:
For details and examples, check the example models and the AnyLogic help, explaining all options in detail.