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 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 |