使用Netlogo时间扩展来计划事件-在计划的事件之前运行模型时是否存在错误?

问题描述

尝试运行带有时间扩展的预定事件。患者/乌龟以缓慢的速度进入,然后在返回之前先增加速度数小时,然后进行操作。无法克服此错误:

Extension exception: Attempted to schedule an event for tick 168.0 which is
        before the present 'moment' of 219.00864034561383
error while patch -10 -10 running TIME:SCHEDULE-REPEATING-EVENT-WITH-PERIOD

甚至可以测试其余部分。 3年前,我发现有人遇到相同的问题,但在此处或GitHub上都未找到修复或更新。

Discrete Event Scheduling in NetLogo: Executing some command on some specific tick

任何人都可以通过其他渠道解决问题,或者是否有其他问题/答案可以解决?如果没有,我会在GitHub页面上发布有关创作者的建议。

to patients-arrive

ask patch -10 -10
    
     [sprout-patients random-poisson  0.0000001                       
     [set shape "person"                                                               
      set time_arrived ticks
      set condition random-float 1.0
      set los 0
      set complete? false
      move-to one-of arrivals
  ]]
                                                                             
  
time:schedule-repeating-event-with-period patch -10 -10 [                            
    [] ->  
   sprout-patients random-poisson   0.1                               
  [set shape "person"                                                                 
   set time_arrived ticks
   set condition random-float 1.0
   set los 0
   set complete? false
   move-to one-of arrivals
  ]]
   peak-start 24.0 "hours"
 time:go-until time:plus tick-datetime 6.0 "hour" 

end 

高峰开始设置为168滴答声

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)