modelColdProducerAgent
Extends from BaseClasses.PartialAgent.
Information
Overview
- This model is a producer agent which controls a cold producing device.
- It is based on communication via UDP and logic implemented with the help of the StateGraph Modelica library.
- It is used together with a broker-agent and at least one producer-agent.
- It requires a CostFunction component to compute a proposal.
Concept
The cold producer agent recives a call for proposal from the broker with a requested capacity adjustment. It makes a proposal with the help of a Cost function for the adjustment and sends it back to the broker. If the proposal is accepted, the agent confirms the adjustment and adjusts the capacity of the controlled device accordingly. The logic is implemented with the help of the StateGraph library. Communication is realized with the help of the DeviceDriver library and follows the language standards for multi-agent-systems set by the FIPA to the highest possible extend for Modelica models. The following figure shows the behaviour of the consumer agent. For further information please refer to the first reference.
References
- Roozbeh Sangi, Felix Bünning, Johannes Fütterer, Dirk Müller. A Platform for the Agent-based Control of HVAC Systems. Modelica Conference, 2017, Prague, Czech Republic.
- FIPA ACL Message Structure Specification
- FIPA Communicative Act Library Specification
- Felix Bünning, Roozbeh Sangi, Dirk Müller. A Modelica library for agent-based control of building HVAC systems. Applied Energy, 193:52-59, 2017.
Example Results
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | name (from PartialAgent) | Name of the agent (five-digit number, eg. 10001) | |
| Boolean | usePoke (from PartialAgent) | false | Use Modelica internal communication for inbox update |
| Real | sampleRate (from PartialAgent) | 5 | Sample time for inbox update (used if usePoke=false) |
| Real | maxCapacity | 0 | Maximum capacity for heat/cold generation (heat positive, cold negative) |
| Real | minCapacity | -10000 | Minimum capacity for heat/cold generation (heat positive, cold negative) |
| Boolean | maxCapacityExternal | false | Use external input for minimal capacity |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanOutput | sendOut (from PartialAgent) | Turns true when the sending unit of the agent is active | |
| Modelica.Blocks.Interfaces.RealInput | currentCapacity | Input for current capacity of device | |
| Modelica.Blocks.Interfaces.RealOutput | setCapacityOut | Output for set capacity of device | |
| Modelica.Blocks.Interfaces.RealOutput | calcCapacity | Output to connect with cost function | |
| Modelica.Blocks.Interfaces.RealInput | calcCost | Input to connect with cost function | |
| Modelica.Blocks.Interfaces.BooleanInput | OnOff_external | External on/off switch | |
| Modelica.Blocks.Interfaces.RealInput | minCapacityInput | Input for external minimum capacity |
Components
Revisions
- December 2016, by Roozbeh Sangi:
revised - December 2016, by Felix Bünning: Changed some variables to Integer type in order to avoid warnings caused by using the "==" operator
- November 2016, by Felix Bünning: Implemented variable minimum load
- October 2015, by Felix Bünning: Developed and implemented