优化注入功能 AnyLogic 的时序

问题描述 投票:0回答:1

我需要在 AnyLogic 中设置优化实验的帮助。我的模型包括两个代理,Agent1 和 Agent2,它们执行处理步骤,然后一起进入汇编器。我想优化Agent1的创建时机,以最大化组装率,这是由Agent2的变量到达来控制的。

当前设置

•   Agent2’s arrival is variable and defined by an external table, meaning its arrival sequence is not consistent.
•   Agent1 needs to be injected dynamically based on Agent2’s arrival, ensuring that Agent1 is created just in time to enter the assembler with Agent2, but without creating unnecessary instances.

目标

在优化实验中,我想要:

•   Optimize the timing for injecting each instance of Agent1 to meet Agent2’s demand at the assembler.
•   Maximize the assembly rate supported by Agent2’s arrival schedule, without over-producing Agent1.

有没有办法设置优化,以便 Agent1 的注入与 Agent2 的每个实例动态对齐?理想情况下,我希望避免创建多余的 Agent1 实例,同时确保组装按照 Agent2 允许的频率进行。

Agent 1 的固定处理持续时间为 50 天,因此理想情况下实验将运行一次,记录 Agent2 进入队列的时间,计算最佳注入时间为输入日期 - 50,在这些时间安排注入,然后重新运行

预先感谢您对如何构建此实验的任何见解!

anylogic
1个回答
0
投票

优化算法不能很好地解决排序问题。 但是,如果代理 2 的到达是确定性的,那么您可以优化代理 1 的到达,其中每个代理 1 都有 1 个参数,这将是自模拟开始以来等待注入它的时间。

但是这样做对于任何现实生活目的来说都是毫无用处的。

序列问题更适合强化学习而不是优化。

© www.soinside.com 2019 - 2024. All rights reserved.