Documentation

Resource Pool

Pool entity resources

Library

Resources

Description

This block defines resources that entities can use during model simulation. Use the Resource Acquirer and Resource Releaser blocks to work with these resources.

Initialize the block with the specified amount of available resources. Then:

  • Use one or more Resource Acquirer blocks to reserve the use of those resources.

  • Use a Resource Releaser block to return resources back to this block for future use.

Resources are visible to the current subsystem and its children. Resource are not visible to parent subsystems.

Parameters

Resource name

Enter name of entity resource.

Resource granularity

Select granularity of resource use.

  • Discrete unit — Use whole number increment.

  • Fractional amount — Use fractional increment.

Reusable upon release
  • Select this check box to allow this resource to return to the resource pool upon release. An example of such a resource is a table in a restaurant, which is available for reuse when a customer leaves.

    Selecting this check box enables the Resource amount source check box.

  • Clear this check box to prevent this resource from returning to the resource pool upon release. In this case, when the resource is released, it is no longer available in the resource pool. An example of such a resource is food in a restaurant, which is not reusable upon consumption.

Resource amount source

Select resource amount source.

  • Dialog

    Select this option to enable the Resource amount parameter. Selecting this parameter enables the Resource amount parameter.

  • Message port

    Select this option to enable an input message port. If you want a variable capacity resource, select this option. The payload of the arriving message increments the existing number of resources for the block. For example, if the resource pool has five resources, and a message with a payload of three arrives at the input port, the block has eight resources available. The number of resources cannot decrement. Selecting this parameter enables the Initial resource amount parameter.

Resource amount

Enter amount of resource.

Initial resource amount

Enter initial amount of resource.

Amount in use, u

Outputs the amount of resources that the block has acquired and has not yet released. For example, if the resource pool has ten resources, and the entity acquires all of them, this port shows 10. When the block releases the resources, this port shows 0.

Average utilization, util

Outputs the average resource utilization.

Amount available, avail

Outputs the amount of resources available.

Introduced in R2016a

Was this topic helpful?