Using Entities to add resources to a Resource Pool in SimEvents

3 次查看(过去 30 天)
Is there any way to use an Entity attribute to add resources to a Resource Pool. For example if I define a Cargo Entity with a Fuel attribute, when the Cargo entity is generated it would add the amount of Fuel defined by its Fuel attribute to the resource pool. In such a model a separate Entity, e.g., a Car entity would be the entity acquiring the resource.

回答(1 个)

Abdolkarim Mohammadi
This can be done via a Simulink function block. You should also set some of the properties of the resource pool. Find the attached model.
  2 个评论
ivan mcgregor
ivan mcgregor 2020-12-3
hi. this can be used for increase resource amount, but how about decrease amount via signal port? thanks
Abdolkarim Mohammadi
You cannot decrement resources via input port of the Resource Pool. You can only pass an entity to consume resource via Resource Acquirer and NOT passing it through Entity Server.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Discrete-Event Simulation 的更多信息

产品


版本

R2019b

Translated by