<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.a, li.a, div.a
        {mso-style-name:"\!";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Tim,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks soooo much!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>It works when I copies the full path of Type 9.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Best regards,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Yin<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='margin-left:.5in'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Timothy McDowell [mailto:mcdowell@tess-inc.com] <br><b>Sent:</b> Wednesday, November 30, 2011 12:09 PM<br><b>To:</b> Yin Hang; duffy@tess-inc.com<br><b>Cc:</b> trnsys-users@cae.wisc.edu<br><b>Subject:</b> Re: [TRNSYS-users] questions about TRNOPT<o:p></o:p></span></p></div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in'>Yin -<br><br>Make sure you specify the full path for the file that Type 9 will be reading.  Since Genopt copies and moves the dck files around it must include the full path if it is to correctly find the data file.<br><br>Regards,<br><br>Tim<br><br><br><br><br>---------------------------------- <br>Timothy McDowell <br>Executive Vice President <br>Thermal Energy System Specialists, LLC <br>22 N. Carroll St, Suite 370 <br>Madison, WI 53703 <br>Phone: 608-274-2577 <br>Fax: 608-278-1475<br><br><br><o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in'><strong>----- Original Message -----</strong><br><strong>From:</strong> "Yin Hang" <yhang@purdue.edu> <br><strong>Sent:</strong> Wed, November 30, 2011 9:22<br><strong>Subject:</strong> Re: [TRNSYS-users] questions about TRNOPT<o:p></o:p></p><table class=MsoNormalTable border=0 cellspacing=5 cellpadding=0 width="100%" style='width:100.0%;margin-left:.5in'><tr><td style='padding:.75pt .75pt .75pt .75pt'><div><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi, Matt,</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks for your help. The example works fine now. And for my model, I guess the problem is about a data reader component (Type 9c) I used in my model. When I delete this one, the optimization process works. But I cannot solve this problem, the data reader component is important in my model, I need it to read my load calculation file.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Do you have any idea why the data reader has problem with my optimization? In order to test it, I disconnected all the links with Type 9c, while I still keep Type 9c in my model, and the optimization stil l has the same error message.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Best,</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Yin</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Matt Duffy [mailto:duffy@tess-inc.com] <br><b>Sent:</b> Wednesday, November 30, 2011 10:14 AM<br><b>To:</b> Yin Hang; trnsys-users@cae.wisc.edu<br><b>Subject:</b> Re: [TRNSYS-users] questions about TRNOPT</span><o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in'>Dear Yin Hang,<br><br>Please make sure that you can first run the example (.\Optimizaiton\Example\Example.tpf) sucessfully in the TRNSYS Simulation Studio. If that runs ok, then implement the TRNOPT with the input (*.dck) file for that example as outlined in the tutorial (.\Optimization\Documentation\TrnOptv17.pdf). I see from your email below that you were able to do this, no? If you have problems and as the tutorial says, you will have to look in the *.lst or *.log file in the ".\Optimizaiton\GenOpt\Simulation" and/or ".\Optimizaiton\GenOpt\Configuration" directories.<br><br>The other issue is that you have to make sure that in the *.log file, the TRNOPT component Type583 needs to be loaded from the "TESSOptimizationLibrary_v17.01_Release.dll" and NOT any other former DLL.<br><br>Last, please make sure that you are usin g at least GenOpt 3 for TRNOPT v17.<br><br>Best regards,<br><br>Matt Duffy<o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in'><strong>----- Original Message -----</strong><br><strong>From:</strong> "Yin Hang" <yhang@purdue.edu> <br><strong>Sent:</strong> Tue, November 29, 2011 16:09<br><strong>Subject:</strong> [TRNSYS-users] questions about TRNOPT<o:p></o:p></p><table class=MsoNormalTable border=0 cellspacing=5 cellpadding=0 width="100%" style='width:100.0%;margin-left:.5in'><tr><td style='padding:.75pt .75pt .75pt .75pt'><div><div><p><span style='font-family:"Calibri","sans-serif"'>Dear TRNSYS users,</span><o:p></o:p></p><p> <o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Probably this question was already been asked, but I could not find the answer. I hope someone could help me out with my problem.</span><o:p></o:p></p><p>I want to use ! TRNOPT fo! r a optimization problem. I use TRNSYS 17 for my model, and I believe the TRNOPT is version 17.<o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>My model works fine in the simulation studio, although it takes several warnings.</span> <span style='font-family:"Calibri","sans-serif"'>But when the GENOPT starts, I</span> <span style='font-family:"Calibri","sans-serif"'>received an error message in the GENOPT screen:</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>“Assigning 2</span> <span style='font-family:"Calibri","sans-serif"'>threads for simulations.</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Initialize.</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Java.lang.Exception:</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Exception in execu ting the simulation program</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Simulation working directory:….</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Command string:…</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Error in executing the simulation program</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Exit value of the simulation program: 1</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Working directory:</span> <span style='font-family:"Calibri","sans-serif"'>…</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Current command String:…</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Error stream of simulation program: Simulation program did not return an error stream.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Calibri","sans-serif"'>GENOPT terminated with error.</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>See logfile for future information.</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>“</span><o:p></o:p></p><p> <o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Could someone tell me what does this error mean, or where can I find more detailed information about this error? </span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>I run the example</span> <span style='font-family:"Calibri","sans-serif"'>in genopt, and it works well. So I believe there should be something wrong with my model rather than the software itself.</span><o:p></o:p></p><p> <o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Thanks.</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Yin (Kathy) Hang     & nbsp;                                                         </span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>_____________________________________</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Research Assistant, Teaching Assistant(CE497)</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Architectural Engineering</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Purdue University</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>550 Stadium Mall Dr., West Lafayette, IN 47907</span><o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Office: CIVL G292C</span><o:p></o:p></p><p class=a><span style='font-family:"Calibri","sans-serif"'>Phone: (765)-494-1714(o), (765)-430-8452(c)</span><o:p></o:p></p><p> <o:p></o:p></p></div><div class=MsoNormal align=center style='text-align:center'><hr size=1 width="100%" noshade style='color:#ACA899' align=center></div><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>TRNSYS-users mailing list<o:p></o:p></pre><pre><a href="" target="_new">TRNSYS-users@cae.wisc.edu</a><o:p></o:p></pre><pre><a href="https://mailman.cae.wisc.edu/listinfo/trnsys-users" target="_new">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a><o:p></o:p></pre></div></td></tr></table><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'> <o:p></o:p></p></div></div></div><div class=MsoNormal align=center style='text-align:center'><hr size=1 width="100%" noshade style='color:#ACA899' align=center></div><pre><o:p> </o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>TRNSYS-users mailing list<o:p></o:p></pre><pre><a href="javascript:bodyCreateMail('TRNSYS-users%40cae.wisc.edu')">TRNSYS-users@cae.wisc.edu</a><o:p></o:p></pre><pre><a href="https://mailman.cae.wisc.edu/listinfo/trnsys-users" target="_blank">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a><o:p></o:p></pre></div></td></tr></table><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p></div></div></body></html>