[TRNSYS-users] TRNSYS-MATLAB for optimization

Arian Bahrami arianbhm at yahoo.com
Mon Feb 22 23:29:38 PST 2021


Use this line in your matlab, it will run TRNSYS once;

!"C:\TRNSYS18\Exe\TrnEXE64.exe" "C:\SDHW.dck" /n




Sent from Yahoo Mail for iPhone


On Tuesday, February 23, 2021, 9:24 AM, Arian Bahrami via TRNSYS-users <trnsys-users at lists.onebuilding.org> wrote:

Hi,
There is no need to use Type 155, if you want to use the GA of Matlab. The Type 155 used when your main program is TRNSYS. Consider you run TRNSYS for a duration and find the value of your objective function by TRNSYS now it is time for Matlab to direct your variables to be sent to your TRNSYS dck file for another TRNSYS run. In other words, you should call TRNSYS many time in Matlab. The Type 155 is for calling Matlab in one TRNSYS run for every time step of TRNSYS run. It is quite different.
Arian 


Sent from Yahoo Mail for iPhone


On Tuesday, February 23, 2021, 9:14 AM, Farah Souayfane via TRNSYS-users <trnsys-users at lists.onebuilding.org> wrote:

Dear TRNSYS users,
I have a question related to the link between TRNSYS and MATLAB to perform an optimization problem through TYPE 155.TRNSYS is a simulator (objective functions evaluated in TRNSYS) and a genetic algorithm is used in matlab (optimal values found in Matlab and then processed to TRNSYS).Are there any clear steps we should follow to do this co-simulation?I have seen that first, we have to parametrize the .dck file? others used GENOPT in order to automate TRNSYS runs and generate deck .dck file and then Matlab is used as an optimizer.Any suggestions regarding this?
Thank you and best regards,Farah



This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email._______________________________________________
TRNSYS-users mailing list
TRNSYS-users at lists.onebuilding.org
http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org



_______________________________________________
TRNSYS-users mailing list
TRNSYS-users at lists.onebuilding.org
http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20210223/4d5ced5a/attachment.htm>


More information about the TRNSYS-users mailing list