modelRoomAgent
Extends from BaseClasses.PartialAgent.
Information
Overview
- This model is a room-agent which controls the temperature inside the room.
- 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.
Concept
The room agent observes the temperature inside a room. If the temperature crosses a certain treshhold and a pre-defined sample-time has elapsed, a cooling or heating request is calculated and send to a broker agent. The broker-agent ensures that the requested heat is produced. 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 roomagent. 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 | T_set | 273.15 + 20 | Set temperature by the user |
| Integer | broker | 10003 | Name of the corresponding broker-agent |
| Real | startTime | 0 | Time when the agent makes first request |
| Real | threshold | 2 | Temperature threshold difference when agent gets active |
| Real | sampleTriggerTime | 60 | Time difference between two calls for adjustment [s] |
| Real | P | 50 | Proportional factor for load estimation |
| Real | Kd | 30000 | Derivative factor for load estimation |
| Real | G | 1 | Gain for the load estimation |
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 | T | Room temperature |
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: Made coefficients for load estimation accessible for the user
- October 2015, by Felix Bünning: Developed and implemented