add_stock
Add a stock reservoir to a Stella system dynamics model by specifying its name, initial value, optional position, units, and non-negativity constraint.
Instructions
Add a stock (reservoir) to the current model
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position (optional, auto-positioned if not specified) | |
| y | No | Y position (optional, auto-positioned if not specified) | |
| name | Yes | Stock name | |
| units | No | Units | |
| model_id | No | Session-scoped model ID. Optional; defaults to the current model for this session. | |
| non_negative | No | Prevent negative values | |
| initial_value | Yes | Initial value (number or equation) |