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

Re: [TRNSYS-users] Type 9 Data reader



Mainly my problem is about the multi-objective optimization which is done by connecting MATLAB and TRNSYS. A text file (or excel file) is written by MATLAB using the optimization algorithm. The file is used by TRNSYS for evaluation of the objective functions (which are function of TRNSYS parameters like area of solar collectors) and the results goes back to MATLAB for continuing the optimization procedure. At first,  I used type 9c and got the error “Floating point division by zero”. Later because of the problem I had with type 9 and asked in my previous email, I also use type 62 and got the same error. Where does this error come from in my case and how can I resolve it?

Thank you in advance

 

Best regards,

Hoofar

 

From: TRNSYS-users <trnsys-users-bounces@lists.onebuilding.org> On Behalf Of Hemmatabady, Hoofar via TRNSYS-users
Sent: Tuesday, August 27, 2019 2:57 PM
To: TRNSYS users mailing list at OneBuilding.org <trnsys-users@lists.onebuilding.org>
Cc: Hemmatabady, Hoofar <hemmatabady@geo.tu-darmstadt.de>
Subject: [TRNSYS-users] Type 9 Data reader

 

Dear all,

 

Is there a way that a data reader (type 9) reads a text file just at the beginning of the simulation, instead of the whole time steps, so that it can be used as a TRNSYS parameter for mathematical optimization?

I know it is also possible by using type 62 (calling excel), but using excel reduces the speed considerably.

 

Best regards,

Hoofar