mechyai / rl-emspy Goto Github PK
View Code? Open in Web Editor NEWAPI for RL algorithm design & testing of BCA (Building Control Agent) HVAC on EnergyPlus building energy simulator by wrapping their EMS Python API
License: Apache License 2.0
API for RL algorithm design & testing of BCA (Building Control Agent) HVAC on EnergyPlus building energy simulator by wrapping their EMS Python API
License: Apache License 2.0
Hi. I have been trying to simulate varying the number of people in a zone, but I keep getting the following error
Exception ignored on calling ctypes callback function: <function EmsPy._enclosing_callback.._callback_function at 0x11cb99ee0>
Traceback (most recent call last):
File "/Users/yash/Documents/Zodhya/RL-EmsPy/emspy/emspy.py", line 543, in _callback_function
self.set_ems_handles()
File "/Users/yash/Documents/Zodhya/RL-EmsPy/emspy/emspy.py", line 276, in set_ems_handles
setattr(self, 'handle' + ems_type + '' + name, self._get_handle(ems_type, handle_inputs))
File "/Users/yash/Documents/Zodhya/RL-EmsPy/emspy/emspy.py", line 308, in _get_handle
raise Exception(f'ERROR: [{str(ems_obj_details)}]: The EMS sensor/actuator handle could not be '
Exception: ERROR: [('People', 'Number of People', 'People_1')]: The EMS sensor/actuator handle could not be found. Please consult the .idf and/or your ToC for accuracy
This is the People object in my IDF file
`
People,
People_1, !- Name
Ergo Office 1, !- Zone or ZoneList Name
Ergo Schedule, !- Number of People Schedule Name
People, !- Number of People Calculation Method
1, !- Number of People
, !- People per Zone Floor Area {person/m2}
, !- Zone Floor Area per Person {m2/person}
0.3, !- Fraction Radiant
, !- Sensible Heat Fraction
Ergo Activity; !- Activity Level Schedule Name
`
And this is my tc_actuator dictionary
tc_actuators = { 'zn0_people': ('People', 'Number of People', 'People_1'), # deg C }
Dear @mechyai
Thank you for your great work!
In the RL-EmsPy-main\example_usage\simple_emspy_control.py, your wrote tc_actuators defination below.
tc_actuators = {
# HVAC Control Setpoints
'zn0_cooling_sp': [('Zone Temperature Control', 'Cooling Setpoint', zn0)], # deg C
'zn0_heating_sp': [('Zone Temperature Control', 'Heating Setpoint', zn0)], # deg C
}
I think that the definations above must be consistent with the zone Thermostat setpoint definition in the idf file. But how to define HVAC control setpoints in the idf file that can make tc_actuator work?
Besides, how to modify the idf file when I want to add humidity Setpoint in tc_actuators.
Best Regards;
P.S: idf file :simple_office_5zone_April.idf
Dear @mechyai
Thank for your great work!
In your samples of RL-Emspy, only random thermalstatic control was applied in a Zone by RL. But could you tell me how to control the fan speed by actuators.
Best regards:
Dear @mechyai
Can EmsPy train RL models? such as using DQN, PPO policy?
If so, could you upload samples for traing models?
Best Regards;
Hi @mechyai, I'm trying to replicate some papers that use different target setpoints.
RL-EmsPy/example_usage/simple_emspy_control.py
Lines 96 to 107 in 01984a9
For example, a paper controls the supply air set point temperature of a VRF system. Where can I find the relevant actuators to do this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.