[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] TRNOPT Output



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@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@tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com