Skip to main content

Posts

Showing posts from 2018
Android Development | Part 1 Update: Android app already created and available via this link In this post series I will be describing my experience in learning Android development using Java. Me and my friend recently decided to develop some basic android application sort of TO-DO list/scheduler that will manage your cleaning work at home. The sample window of this app may look like this image bellow: So, how to begin? What I should learn first? That's kind of questions I am still asking myself :) Android Studio The most famous IDE fo Android development, however it is known to have some bugs. Android application consists of two parts: code and xmls. XML works as HTML for a web app, containing texts, buttons, image objects etc and located in res folder. The main notion in Android is Activity which as an atomic element of an app. Along with Activity android creates XML related to it. In order to relate objects on this XML layout use findViewById(R.id.some_id_fromXML) , wh...

Application of Reinforcement Learning in HVAC systems. Part 3

SARSA controller setup After we figured out the environment, it is important to understand how to apply RL concept on it. RL works in continuous as well as in discrete time state-space environments. MLE+ dictates the conditions in which we will operate: we will construct discrete state-space using variation of three parameters – temperature set point, actual temperature of a zone and electric heater. I did it in straightforward way – having the vectors of values that can be possible for each variable (e.g. heater can have loads between 0 and 12000KW); made combinations of all three vectors to define all state-spaces within which our building model can operate (more importantly we are trying to not define state-spaces that not possible for a real building systems). Along creation of states it creates Q matrix for three actions meaning increase, decrease and don't change temperature set point using reward function described bellow: As you may notice reward function appreciates...

Application of Reinforcement Learning in HVAC systems. Part 2

So, how to model an office building to simulate the work of our controller? In short, I have used the following list of programs: Matlab, EnergyPlus and MLE+ in tandem. First things first, EnergyPlus - is an building simulation engine that will allow you to modulate maybe not all but most of the physical phenomena running inside real physical structures, including heat transfer and temperature spread. Even though it is a quite a hard to understand how to use EnergyPlus if you are not expert (maybe even for civil engineers), you can always download already designed models of a buildings like I did), which can be found on energy.gov site. Therefore, I took one floor three office medium building EnergyPlus model that comes with and .idf and weather files. Basically, the building has three rooms with electric radiant heating floors and one window and some ventilation system. Simple schematics shown on a picture below: As you may guess, I want to be able to test some controllers on th...

Application of Reinforcement Learning in HVAC systems. Part 1

How Machine Learning and Reinforcement Learning applied for physical systems like building heating? Some intro ... Many civil engineering and computer science researchers are pushing forward the idea of applying new intelligent methods of control of energy consuming systems such as heating, ventilation and air conditioning(HVAC) in non-residential or commercial buildings. The motivation behind improvement of performance of these systems is evident, they account for almost 40% out of total building energy demand. Since this was a question of my university study I have already done some literature review on this topic and outline the main research directions. Even though some research directions may not be seem directly related, but they are have potential to used for our purpose. Thus, the following are main research topics related to the improvement of energy and comfort performance of HVAC systems: Statistical methods. Record previous loads, building statistical models trying ...