相关资源 [英] Interrelated resources

查看:104
本文介绍了相关资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在模拟一个火车站(使用simpy,使用python 2.7),其中存在一些入站路线,一些出站路线和某些平台.现在,当这些资源之一被占用时,我无法将火车分配给某些其他资源.

I am modelling a train station(using simpy, with python 2.7) where there are some incoming routes, some outgoing routes and some platforms. Now, when one of these resources is occupied, I can't assign a train to certain other resources.

现在,当火车驶入一条路线(即横越该路线)时,车站区域内的某些其他路线将在一段时间内无法使用.如果我将路由建模为资源,那么在该资源上产生的请求也会影响/使用其他资源.

Now when a train engages a route - i.e. traverses it - some other routes in the stations area become unusable for some time. If I were to model a route as a resource, then a request yielded at that resource will affect/engage other resources as well.

是否存在某种对资源进行建模的方法,例如,一个resource_A的参与会使resource_B,resource_C在预定的时间内无法工作?

Is there some way of modelling resources, such that engagement of one resource_A puts resource_B, resource_C out of action for some predetermined amount of time?

Aseem Awad

Aseem Awad

推荐答案

我想您只要获得资源A就可以请求其他资源(B和C;也许使用抢占),完成后就释放所有这三个资源答:

I guess you can just request the other resources (B and C; maybe using preemption) once you get resource A and release all three resources once you are done with A.

这篇关于相关资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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