<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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 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;
        color:black;}
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;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 56.7pt 70.85pt;}
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 bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:windowtext">Dear David,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:windowtext">As you mentioned, I can see the results of GenOpt runs, including different values of constants, which were changed by GenOpt, and the corresponding results of the objective
 function in my main output file"C:\TRNSYS18\Optimization\GenOpt\Simulation\OutputListingAll.txt".
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:windowtext">The problem is that I want to check changes in other TRNSYS outputs, which are not considered variables or objective functions by GenOpt (e.g. outlet temperature of a solar
 collector in the case we change its area by GenOpt to calculate total cost). So I used a printer in append mode to print other TRNSYS outputs but the printer does not work in GenOpt runs.  As I have a lot of simulations by GenOpt, it is not possible to check
 every </span><span style="font-family:"Calibri",sans-serif">tmp-genopt-run-xxx</span><span style="font-family:"Calibri",sans-serif;color:windowtext"> file. Also, all runs by GenOpt are not copied as
</span><span style="font-family:"Calibri",sans-serif">tmp-genopt-run-xxx</span><span style="font-family:"Calibri",sans-serif;color:windowtext"> file and they are copied randomly and the copied ones do not include all outputs.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:windowtext">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:windowtext">Hoofar<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:windowtext"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><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>
</div>
<p>Hoofar,<o:p></o:p></p>
<p>  GenOpt is presumably adjusting the values of some constants in your input file. Could you simply send the values of those constants to your printer? Admittedly you'd have some columns in your output file whose values are the same for every time step of
 your simulation but I think that from one run to the next those values would reflect the value that GenOpt ran, not the value that you originally set.
<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>  Essentially you'd have an equation in your project that sets a variable (one that GenOpt is going to modify) such as AREA = 6. You'd then connect AREA to your printer, which is in append mode. When GenOpt runs, it makes a copy of your input file, renames
 it, and moves it to its own directory (.\TrnsysXX\Optimization\GenOpt\Simulation\tmp-genopt-run-xxx\GenoptInputFile.dck). Any output files that the *.dck (input file) generates will also be in that folder.<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>  Again, I am not sure this will work but it may be worth a try.<o:p></o:p></p>
<p>regards,<o:p></o:p></p>
<p> David<o:p></o:p></p>
<p><o:p> </o:p></p>
<p><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 05/06/2019 15:04, Hemmatabady, Hoofar via TRNSYS-users wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div id="divtagdefaultwrapper">
<p><span style="font-family:"Calibri",sans-serif">Dear TRNSYS users,<o:p></o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif">I am using TRNOPT for optimization. The optimization method that I am using (PSO) starts multiple TRNSYS simulations simultaneously. I can see the overall results of my optimization. "C:\TRNSYS18\Optimization\GenOpt\Simulation"
 as OutputListingFile. <o:p></o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif">How can I add other TRNSYS outputs, which are calculated separately in the same file as a separate column?<o:p></o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif">I also tried to use a separate printer which appends outputs to the previously written ones but I can not see the outputs from GenOpt runs (neither simultaneous nor hierarchical simulations) in the specified
 printer file. How can I resolve this problem?<o:p></o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif">Best regards,<o:p></o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif">Hoofar<o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>TRNSYS-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a><o:p></o:p></pre>
<pre><a href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a><o:p></o:p></pre>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre>***************************<o:p></o:p></pre>
<pre>David BRADLEY<o:p></o:p></pre>
<pre>Principal<o:p></o:p></pre>
<pre>Thermal Energy Systems Specialists, LLC<o:p></o:p></pre>
<pre>3 North Pinckney Street - suite 202<o:p></o:p></pre>
<pre>Madison, WI  53703 USA<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>P:+1.608.274.2577<o:p></o:p></pre>
<pre>F:+1.608.278.1475<o:p></o:p></pre>
<pre><a href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><a href="http://www.tess-inc.com">http://www.tess-inc.com</a><o:p></o:p></pre>
<pre><a href="http://www.trnsys.com">http://www.trnsys.com</a><o:p></o:p></pre>
</div>
</body>
</html>