[TRNSYS-users] doubt trnsys optimization
Alastair McDowell
alastair.mcdowell at energyae.com
Wed Oct 14 00:21:01 PDT 2015
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<http://au.mathworks.com/help/matlab/ref/dos.html> 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 at energyae.com<mailto:alastair.mcdowell at energyae.com>
608 Harris St Sydney NSW 2007 Australia | http://www.energyae.com<http://www.energyae.com/>
From: TRNSYS-users [mailto:trnsys-users-bounces at lists.onebuilding.org] On Behalf Of Alex
Sent: Wednesday, October 14, 2015 6:06 PM
To: trnsys-users at lists.onebuilding.org
Subject: [TRNSYS-users] doubt trnsys optimization
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20151014/bef4f2f2/attachment-0003.htm>
More information about the TRNSYS-users
mailing list