[TRNSYS-users] TRNOPT Output

Hemmatabady, Hoofar hemmatabady at geo.tu-darmstadt.de
Wed May 8 01:53:19 PDT 2019


Dear David,

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".

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 tmp-genopt-run-xxx file. Also, all runs by GenOpt are not copied as tmp-genopt-run-xxx file and they are copied randomly and the copied ones do not include all outputs.

Best regards,
Hoofar




Hoofar,

  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.



  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.



  Again, I am not sure this will work but it may be worth a try.

regards,

 David




On 05/06/2019 15:04, Hemmatabady, Hoofar via TRNSYS-users wrote:

Dear TRNSYS users,



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.



How can I add other TRNSYS outputs, which are calculated separately in the same file as a separate column?



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?



Best regards,

Hoofar


_______________________________________________

TRNSYS-users mailing list

TRNSYS-users at lists.onebuilding.org<mailto:TRNSYS-users at lists.onebuilding.org>

http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org

--

***************************

David BRADLEY

Principal

Thermal Energy Systems Specialists, LLC

3 North Pinckney Street - suite 202

Madison, WI  53703 USA



P:+1.608.274.2577

F:+1.608.278.1475

d.bradley at tess-inc.com<mailto:d.bradley at tess-inc.com>



http://www.tess-inc.com

http://www.trnsys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20190508/4b53576b/attachment.html>


More information about the TRNSYS-users mailing list