<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<div style="color: rgb(0, 0, 0);">
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
Dear TRNSYS Users,<br>
<p><br>
</p>
<p>we would like to implement a Model-predictive-control by using TRNSYS Type 155 to schedule the operation of some plants (CHP and gas boiler) in TRNSYS 17.</p>
<p>The Type will be called every 12 time-steps (1 hour) to calculate the optimal schedule for the next 12 hours. So the input of the Type will be the heat load forecast, the current state of the system (current temperatures and on/off states of the plants)
 and a set of parameters that could either be defined in the Type or read from an external file.</p>
<p><br>
</p>
<p>So I would like to address the following questions to you:<br>
</p>
<p><br>
</p>
<p>1) Is Type 155 able to handle internal Matlab functions like intlinprog?</p>
<p>2) Is it able to handle user defined functions? If so, in which path should they be saved?</p>
<p>3) Do you have any recommendations about how to declare variables, where to define parameters etc?</p>
<p><br>
</p>
<p><span>In the manual and, in general, in the internet we found the basic rules to use Type 155 and the simple examples TwoInputs.m and that for calculating solar collector efficiency. However, we haven't found detailed information or examples of MPC applications
 as the one described above. </span><br>
</p>
<p>Thus, any help from your side would be very appreciated.</p>
<p><br>
</p>
<p>Looking forward to hearing from you,</p>
<p><br>
</p>
Jacopo<br>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p><font style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,"EmojiFont"" size="3" face="Calibri,Arial,Helvetica,sans-serif" color="black"><span id="divtagdefaultwrapper" style="font-size:12pt"></span></font></p>
<font style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,"EmojiFont"" size="3" face="Calibri,Arial,Helvetica,sans-serif" color="black">
<div id="Signature"><font color="#666666"><span style="color:rgb(117,123,128)">___</span></font><font color="#666666"><br>
<br>
<span style="color:rgb(117,123,128)"></span></font><font color="#666666"><span style="color:rgb(117,123,128)">Jacopo Vivian - Dottorando
</span></font><font color="#666666"><br>
<span style="color:rgb(117,123,128)"></span></font><font color="#666666"><span style="color:rgb(117,123,128)">Universita' degli Studi di Padova
</span></font><font color="#666666"><br>
<span style="color:rgb(117,123,128)"></span></font><font color="#666666"><span style="color:rgb(117,123,128)">Dip.to di Ingegneria Industriale
</span></font><font color="#666666"><br>
<span style="color:rgb(117,123,128)"></span></font><font color="#666666"><span style="color:rgb(117,123,128)">via Venezia 1 - 35131 Padova
</span></font><font color="#666666"><br>
<span style="color:rgb(117,123,128)"></span></font><font color="#666666"><span style="color:rgb(117,123,128)">tel 049 827 6879
</span></font><font color="#666666"><br>
<span style="color:rgb(117,123,128)"></span></font><font color="#666666"><span style="color:rgb(117,123,128)">e-mail
</span></font><a href="mailto:jacopo.vivian@dii.unipd.it" target="_blank" rel="noopener noreferrer" id="LPNoLP"><span id="LPNoLP"><span style="color:rgb(117,123,128)">jacopo.vivian@</span><font color="#666666"><span style="color:rgb(117,123,128)">dii.unipd</span><span style="color:rgb(117,123,128)">.com</span></font></span></a><br>
<font color="#666666"></font><br>
<a href="mailto:jacopo.vivian@dii.unipd.it" target="_blank" rel="noopener noreferrer" id="LPNoLP"><span id="LPNoLP"><font color="#666666"><span style="color:rgb(117,123,128)"></span></font></span></a><span style="color:rgb(0,0,0)"></span></div>
</font><font style="" color="#666666"><span class="ecxmoz-txt-tag"><br>
</span></font><font style="" color="#666666"><a class="ecxmoz-txt-link-abbreviated" href="mailto:jacopo.vivian@dii.unipd.it" title="Ctrl+Click or tap to follow the link" id="LPNoLP"><font style="" color="#666666"></font></a></font>
<p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>