add_resource_set
Add a prioritized resource set that seizes the first available resource from a list of alternatives, modeling try-first resource allocation.
Instructions
Add a ResourceSet — entity seizes the first available resource from alternatives.
Models "try resource A first; if busy, try B; if busy, try C." Resources are listed in preference order (index 0 = highest priority). Each resource has its own service time, channel count, and distribution.
Args: name: Instance name (e.g., "MachinePool", "NursePool") resources: List of resource dicts, ordered by preference. Each dict: - "name": str (required) - "service_time": float (default 60.0, in time_unit) - "distribution": str "exp"|"norm"|"unif"|"det" (default "exp") - "channels": int (default 1) Example: [{"name": "FastMachine", "service_time": 30.0}, {"name": "SlowMachine", "service_time": 90.0}] standard_deviation: Global std dev fallback for norm/unif resources (in time_unit) time_unit: Time unit for service_time values — "s", "min", "h"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| resources | Yes | ||
| standard_deviation | No | ||
| time_unit | No | s |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |