Hi Alex, If Type 155 is not working for you, there is an alternative method to perform an optimisation method in TRNSYS using Matlab that may provide greater control for
your optimisation process. 1.
Parameterise the variable you wish to optimise, either by using an equation in TRNSYS if it is constant, or by using a data reader and an input text
file. 2.
Next, have the results you wish to output printed to another text file. 3.
Use Matlab to read the deck file, replace the string containing the variable of interest, or re-write an input text file with the new variable value 4.
Use the Matlab
dos command to execute TRNSYS, where the command statement should be “\TRNexe.exe <Deck file directory> \h” 5.
Use Matlab to read in the simulation results from the output text file you specified in step 2. 6.
Repeat steps 3-5 for the range of the variable of interest Let me know if you have any problems following this method. Kind regards,
Alastair McDowell
Engineering Consultant
Energy Analysis & Engineering – Enabling innovation for a sustainable future
T: +61 450 600 842
E: alastair.mcdowell@energyae.com
608 Harris St Sydney NSW 2007 Australia | http://www.energyae.com From: TRNSYS-users [mailto:trnsys-users-bounces@lists.onebuilding.org]
On Behalf Of Alex Hi i am Alex, is the first time that i write in this forum. I have two doubts. I'm using trnsys to model a solar system combined to a HVAC system, here no problem but i want run a optimization with trnopt, when i run optimizatinon,
appear an error, "Can't be found the Genopt", I perform all the instructions but i can not. This is the first problem. As i couldn't apply this method i've thought do the optimization with Matlab, but i've had another problem, when i run trnsys since matlab,
trnsys has problems with type 155. i'm work with matlab 2012 and trnsys 16, could be that they are not compatible. I prefer perform the optimization with trnopt. Can they help me? Thanks |