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 /> <br /> <!--replyfwdwrap--><div style="background-image: url(http://webmail.fusemail.com/de/r_bg_img.gif);background-position:top;background-repeat:repeat-x;"><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<br /><br /><table width="100!
 %" cellspacing="5"><tbody><tr><td><div class="PrivateMsgDiv"><!-- begin sanitized html --> <style type="text/css">
</style><div class="bodyclass"><div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi, Matt,</span></p><p class="MsoNormal"><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></p><p class="MsoNormal"><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 sti!
 ll has the same error message.</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Best,</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Yin</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </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""> 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></!
 p></div><p class="MsoNormal" style="margin-left:.5in"> </p><p cla
ss="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 using at lea!
 st GenOpt 3 for TRNOPT v17.<br /><br />Best regards,<br /><br />Matt Duffy</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</p><table width="100%" cellspacing="5" cellpadding="0" border="0" class="MsoNormalTable" style="width:100.0%;margin-left:.5in"><tbody><tr><td style="padding:.75pt .75pt .75pt .75pt"><div><div><p><span style="font-family:"Calibri","sans-serif"">Dear TRNSYS users,</span></p><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></p><p><span style="font-family:&quot!
 ;Calibri","sans-serif"">I want to use TRNOPT for a opti
mization problem. I use TRNSYS 17</span> for my model, and I believe the TRNOPT is version 17.</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></p><p><span style="font-family:"Calibri","sans-serif"">“Assigning 2</span> <span style="font-family:"Calibri","sans-serif"">threads for simulations.</span></p><p><span style="font-family:"Calibri","sans-serif"">Initialize.</span></p><p><span style="font-family:"Calibri","sans-serif"">Java.lang.Exception:</span></p><p><span style="font-family:"Calibri","sans-serif"">Exception in executing the!
  simulation program</span></p><p><span style="font-family:"Calibri","sans-serif"">Simulation working directory:….</span></p><p><span style="font-family:"Calibri","sans-serif"">Command string:…</span></p><p><span style="font-family:"Calibri","sans-serif"">Error in executing the simulation program</span></p><p><span style="font-family:"Calibri","sans-serif"">Exit value of the simulation program: 1</span></p><p><span style="font-family:"Calibri","sans-serif"">Working directory:</span> <span style="font-family:"Calibri","sans-serif"">…</span></p><p><span style="font-family:"Calibri","sans-serif"">Current command String:…</span></p><p><span style="font-family:"Calibri","sans-serif"">Error stream of simulation program: Simulation program did not return an error stream.</span></p><p class="MsoNor!
 mal"><span style="font-family:"Calibri","sans-serif&quo
t;">GENOPT terminated with error.</span></p><p><span style="font-family:"Calibri","sans-serif"">See logfile for future information.</span></p><p><span style="font-family:"Calibri","sans-serif"">“</span></p><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></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></p><p> </p><p><span style="font-family:"Calibri","sans-serif"">Thanks.</span></p><p><span style="font-family:"Calibri","sans-serif"">Yin (Kathy) Hang      &nb!
 sp;                                                        </span></p><p><span style="font-family:"Calibri","sans-serif"">_____________________________________</span></p><p><span style="font-family:"Calibri","sans-serif"">Research Assistant, Teaching Assistant(CE497)</span></p><p><span style="font-family:"Calibri","sans-serif"">Architectural Engineering</span></p><p><span style="font-family:"Calibri","sans-serif"">Purdue University</span></p><p><span style="font-family:"Calibri","sans-serif"">550 Stadium Mall Dr., West Lafayette, IN 47907</span></p><p><span style="font-family:"Calibri","sans!
 -serif"">Office: CIVL G292C</span></p><p class="MsoNormal"><span 
style="font-family:"Calibri","sans-serif"">Phone: (765)-494-1714(o), (765)-430-8452(c)</span></p><p> </p></div><div align="center" class="MsoNormal" style="text-align:center"><hr width="100%" size="1" noshade="yes" align="center" style="color:#ACA899" /></div><pre>
 </pre><pre>
_______________________________________________</pre><pre>
TRNSYS-users mailing list</pre><pre><a href="#" target="_new">TRNSYS-users@cae.wisc.edu</a></pre><pre><a href="https://mailman.cae.wisc.edu/listinfo/trnsys-users" target="_new">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a></pre></div></td></tr></tbody></table><p class="MsoNormal" style="margin-left:.5in"> </p></div></div></div><!-- end sanitized html --> <hr size="1" noshade="noshade" /><pre>
_______________________________________________
TRNSYS-users mailing list
<a href="javascript:bodyCreateMail('TRNSYS-users%40cae.wisc.edu')">TRNSYS-users@cae.wisc.edu</a>
<a href="https://mailman.cae.wisc.edu/listinfo/trnsys-users" target="_blank">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a>
</pre></div></td></tr> </tbody></table></div>