<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Adnan,<div><br></div><div>I gave you the solution to your problem in the last email - copied below. Your case 3 is exactly the solution we listed - all you have to do is replace the ID1 to ID4 names with your WinID names that correspond to the 4 cases.</div><div><br></div><div>Jeff - TESS<br><br><div id="AppleMailSignature">Sent from my iPhone</div><div><br>On Feb 17, 2019, at 10:45 PM, adnan rasheed via TRNSYS-users <<a href="mailto:trnsys-users@lists.onebuilding.org">trnsys-users@lists.onebuilding.org</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/2e86d00c6073709ca375770bffb0905147a2d941.png?u=2838774"><div></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">adnan rasheed</strong> <span dir="ltr"><<a href="mailto:adnan.upm.spain@gmail.com">adnan.upm.spain@gmail.com</a>></span><br>Date: Sat, Feb 16, 2019 at 1:01 PM<br>Subject: Re: [TRNSYS-users] Equation editor<br>To: Jeff Thornton <<a href="mailto:thornton@tess-inc.com">thornton@tess-inc.com</a>><br></div><br><br><div dir="ltr"><img width="0" height="0" class="m_3802911282430920901mailtrack-img" alt="" style="display:flex" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"><div></div>Thanks Jeff,<div>The detail is like that...</div><div><br></div><div><font color="#0000ff">Case 1</font></div><div> <u> </u><u>EQUATION Editor</u><u> </u></div><div>Weather data --------------------------------- Solar radiation Win_id_1 = 0 </div><div> Win_id_2 = 1 <br> Win id =
<font color="#000000"> G</font>T(<font color="#ff0000">Solar</font>_R,100)*<font color="#0000ff">Win_ID_1</font>+(LT(<font color="#ff0000">Solar_R</font>,100))*<font color="#0000ff">Win_ID_2</font> ----------------------------------------------------------Type 56 input (for controlling Window) </div><div><br></div><div><font color="#0000ff">Case 2</font></div><div><br><div> <u> EQUATION Editor </u></div><div> Win_id_1 </div><div>Weather data----------------------------------- Temp Win_id_2<br> Win id = <font color="#000000">G</font>T(<font color="#ff0000">Temp</font>,20)*<font color="#0000ff">Win_ID_1</font>+(LT(<font color="#ff0000">Temp</font>,20))*<font color="#0000ff">Win_ID_2</font> </div></div><div><br></div><div>BOTH CASE 1 AND 2 WORKS FINE.</div><div><br></div><div><font color="#0000ff">Case 3 </font></div>now case three i want to control both temp and solar radiation combine and need to get one output for TYPE 56<div><br></div><div>Like when temp > 20 and solar radiation > 100 output should be 0.. and when temp < 20 and solar radiation < 100 out put should be 1</div><div><br></div><div>Hope this explanation will help. </div><div>Thank you very much for looking into my problem.</div><div><br></div><div>Regards</div><div>Adnan</div><div><br><div class="m_3802911282430920901mt-signature">
<table border="0" cellpadding="8" cellspacing="0">
<tbody><tr>
<td>
<a href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&" style="text-decoration:none" target="_blank">
<img src="https://s3.amazonaws.com/mailtrack-signature/sender_notified.gif" alt="Mailtrack" width="32" height="32">
</a>
</td>
<td>
<span style="color:#777">Sender notified by</span> <br>
<a href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&" class="m_3802911282430920901mt-install" style="color:#4374f7" target="_blank">Mailtrack</a>
<span style="color:transparent;font-size:0">02/16/19, 12:56:33 PM</span>
</td>
<td>
</td>
</tr>
</tbody></table>
</div><div></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 15, 2019 at 11:50 PM Jeff Thornton <<a href="mailto:thornton@tess-inc.com" target="_blank">thornton@tess-inc.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Adnan,<div><br></div><div>You didn’t give us enough information to be able to write the equations. What happens when the radiation is high but the temperature is low? And the opposite condition? But we can set it up in a basic format for you to edit:</div><div><br></div><div>Equations 3</div><div>SolarHigh = GT(Solar_R,100)</div><div>TempHigh = GT(Temp,100)</div><div>Win_ID = SolarHigh*TempHigh*ID1+SolarHigh*(1-TempHigh)* ID2+(1-SolarHigh)*TempHigh*ID3+(1-SolarHigh)*(1-TempHigh)* ID4</div><div><br></div><div>Basically set up your equation to account for all 4 outcomes. Just fill in the correct ID in the equation above and you should be good.</div><div><br></div><div>Jeff - TESS</div><div><br><div id="m_3802911282430920901gmail-m_-6820840382148237043AppleMailSignature">Sent from my iPhone</div><div><br>On Feb 15, 2019, at 4:48 AM, adnan rasheed via TRNSYS-users <<a href="mailto:trnsys-users@lists.onebuilding.org" target="_blank">trnsys-users@lists.onebuilding.org</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><img width="0" height="0" class="m_3802911282430920901gmail-m_-6820840382148237043mailtrack-img" alt="" style="display:flex" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"><div></div>Hello everyone,<div><br></div><div>i am using simulation studio's equation editor, two equations with different parameters set values separately, and they work fine now i want to control two parameters together with two equation combine how i can do this</div><div><br></div><div>my equations are e.g</div><div><br></div><div>1) win_id_input =<font color="#000000"> INT(G</font>T(<font color="#ff0000">Solar</font>_R,100)*<font color="#0000ff">Win_ID_1</font>+(LT(<font color="#ff0000">Solar_R</font>,100))*<font color="#0000ff">Win_ID_2</font> </div><div><br></div><div> 2)
win_id_input =<font color="#000000"> INT(</font>GT(<font color="#ff0000">temp,</font>100)*<font color="#0000ff">Win_ID_1</font>+(LT(<font color="#ff0000">temp,100</font>))*<font color="#0000ff">Win_ID_2</font> <br clear="all"><div><br></div>need one out put both conditions together, </div><div>Thanks in advance </div><div><br></div><div><br><div dir="ltr" class="m_3802911282430920901gmail-m_-6820840382148237043gmail_signature"><div dir="ltr"><div><div dir="ltr"><font face="georgia, serif" color="#666666">Adnan Rasheed</font><div><font face="georgia, serif" color="#666666">PhD Researcher</font></div><div><font face="georgia, serif" color="#666666">Kyungpook National University</font></div><div><font face="georgia, serif" color="#666666">Daegu, South Korea.</font></div><div><font face="georgia, serif" color="#666666">+82-102762-0105</font></div><div><font face="georgia, serif" color="#666666"><a href="mailto:adnan.upm.spain@gmail.com" target="_blank">adnan.upm.spain@gmail.com</a>, <a href="mailto:adnanrasheed@knu.ac.kr" target="_blank">adnanrasheed@knu.ac.kr</a></font></div></div></div></div></div><br></div><br><div class="m_3802911282430920901gmail-m_-6820840382148237043mt-signature">
<table border="0" cellpadding="8" cellspacing="0">
<tbody><tr>
<td>
<a href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&" style="text-decoration:none" target="_blank">
<img src="https://s3.amazonaws.com/mailtrack-signature/sender_notified.gif" alt="Mailtrack" width="32" height="32">
</a>
</td>
<td>
<span style="color:rgb(119,119,119)">Sender notified by</span> <br>
<a href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&" class="m_3802911282430920901gmail-m_-6820840382148237043mt-install" style="color:rgb(67,116,247)" target="_blank">Mailtrack</a>
<span style="color:transparent;font-size:0px">02/15/19, 7:45:22 PM</span>
</td>
<td>
</td>
</tr>
</tbody></table>
</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>TRNSYS-users mailing list</span><br><span><a href="mailto:TRNSYS-users@lists.onebuilding.org" target="_blank">TRNSYS-users@lists.onebuilding.org</a></span><br><span><a href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org" target="_blank">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a></span><br></div></blockquote></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_3802911282430920901gmail_signature"><div dir="ltr"><div><div dir="ltr"><font face="georgia, serif" color="#666666">Adnan Rasheed</font><div><font face="georgia, serif" color="#666666">PhD Researcher</font></div><div><font face="georgia, serif" color="#666666">Kyungpook National University</font></div><div><font face="georgia, serif" color="#666666">Daegu, South Korea.</font></div><div><font face="georgia, serif" color="#666666">+82-102762-0105</font></div><div><font face="georgia, serif" color="#666666"><a href="mailto:adnan.upm.spain@gmail.com" target="_blank">adnan.upm.spain@gmail.com</a>, <a href="mailto:adnanrasheed@knu.ac.kr" target="_blank">adnanrasheed@knu.ac.kr</a></font></div></div></div></div></div>
</div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font face="georgia, serif" color="#666666">Adnan Rasheed</font><div><font face="georgia, serif" color="#666666">PhD Researcher</font></div><div><font face="georgia, serif" color="#666666">Kyungpook National University</font></div><div><font face="georgia, serif" color="#666666">Daegu, South Korea.</font></div><div><font face="georgia, serif" color="#666666">+82-102762-0105</font></div><div><font face="georgia, serif" color="#666666"><a href="mailto:adnan.upm.spain@gmail.com" target="_blank">adnan.upm.spain@gmail.com</a>, <a href="mailto:adnanrasheed@knu.ac.kr" target="_blank">adnanrasheed@knu.ac.kr</a></font></div></div></div></div></div><br><div class="mt-signature">
<table border="0" cellpadding="8" cellspacing="0" style="user-select: none;">
<tbody><tr>
<td>
<a href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&" class="" style="text-decoration:none">
<img src="https://s3.amazonaws.com/mailtrack-signature/sender_notified.gif" alt="Mailtrack" class="" width="32" height="32">
</a>
</td>
<td>
<span style="color:#777">Sender notified by</span> <br>
<a href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&" class="mt-install" style="color:#4374f7">Mailtrack</a>
<span style="color:transparent;font-size:0">02/18/19, 1:45:00 PM</span>
</td>
<td>
</td>
</tr>
</tbody></table>
</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>TRNSYS-users mailing list</span><br><span><a href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a></span><br><span><a href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a></span><br></div></blockquote></div></body></html>