Using Entities to add resources to a Resource Pool in SimEvents

6 Ansichten (letzte 30 Tage)
Control Zed
Control Zed am 29 Feb. 2020
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.

Antworten (1)

Abdolkarim Mohammadi
Abdolkarim Mohammadi am 28 Mai 2020
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 Kommentare
ivan mcgregor
ivan mcgregor am 3 Dez. 2020
hi. this can be used for increase resource amount, but how about decrease amount via signal port? thanks
Abdolkarim Mohammadi
Abdolkarim Mohammadi am 3 Dez. 2020
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Discrete-Event Simulation finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by