"Anylogic"库存管理 [英] "Anylogic" Inventory management

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

问题描述

我想模拟一家医院.患者(疾病以彩色表示)到达医院,医生需要医疗车来治疗患者. 医疗车有四个不同的项目类别.其中三个项目类别与患者的颜色有关,每个患者使用一个项目类别. 当患者到达时,一定数量的医疗推车被排空,直到达到一定的库存水平,然后推车被转移到要装满的位置.例如,蓝色的病人到了,蓝色的存货与普通存货一起下降了.如果连续有三名蓝色病人,即使仍然有其他病人的存货,手推车的需求也将被重新填充. 一个完整的想法示例:有40辆推车可用,每辆推车都装有药物等,可用于4例蓝色患者,3例绿色,2例红色和10例一般患者.如果前四名患者是蓝色的,则需要重新填充推车,并激活新的推车.

I want to simulate a hospital. A patient(disease is illustrated with color) arrives at the hospital, and the doctor needs a medical cart to treat patient. The medical cart have four different item categories. Three of the item categories relates to the color of the patient and one item category is used at every patient. When a patient arrives a certain amount of the medical cart gets drained, until it reaches a certain inventory level and the cart is transferred to a location to be filled up. For instance blue patient arrives and blue stock is lowered along with the general stock. If there is three blue patients in a row the carts needs is send to be refilled even though it still have stock for other patients. An full example of the thinking: There are 40 carts available-each with medicin etc. for 4 blue patients, 3 green,2 red and 10 general. If first four patients are blue the carts needs to be refilled and a new cart is activated.

因此,使用流程建模库来进行离散建模来描述患者流,但是我无法完全弄清楚如何以诸如库存水平取决于到达的患者数量以及一定的数量来创建医疗手推车的方式.级别被填满.我应该使用基于代理的建模还是系统动态建模,还是应该继续进行离散建模?

So the patient flow is described with discrete modeling using the processes modeling librabry, but I cant quite figure out how to create the medical carts in a way such as the inventory levels depend on the number of patients that arrives and at a certain level be filled up. Should I use agent based or system dynamic modelling or continue with discrete modeling?

推荐答案

您的购物车必须是医生占用的资源...当您松开购物车时,您将创建一个selectOutput,询问购物车是否已装满或没有必要的物品...如果不是,请重新填充,如下图所示:

Your Cart MUST be a resource that is seized by the doctor... When you release the cart you create a selectOutput asking the question if the cart is filled or not with the necessary items... If it's not it goes refill as you can see in the following image:

现在要问"itemsMissing"问题...您需要您的资源成为Cart代理商,每个项目都有一个变量,以保持剩余的数量.

Now to ask the "itemsMissing" question... you need your resource to be a Cart agent with one variable for each item that keeps count of how many items remain.

这就是我要做的...但是您可能需要研究释放块与资源任务结束块的工作方式,这是我在这里不能教的,因此,如果需要,您将必须研究帮助文档.您不知道....可能您将不得不将此示例调整为适合您的特定情况.

This is what I would do... but you need to investigate probably how the release block works with the resource task end block, which is something I can't teach here, so you will have to investigate the help documentation if you don't know.... And probably you will have to adapt this example to your particular case.

这篇关于"Anylogic"库存管理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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