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

Re: [TRNSYS-users] Calling TRNSYS from MATLAB with prescribed initial conditions



Amin,

  We have discontinued the use of this email list in favor of a forum. Please visit www.trnsys.org/community to join the forum, browse previous questions and responses, and post new topics.

  If you signed up for the forum and never received your confirmation, please send me a direct email and I can help you get logged in.

kind regards,

 David


On 5/17/2024 2:52 AM, Mohammadamin Faghihi via TRNSYS-users wrote:

Hi,

I want to design an MPC controller for an energy system which is modeled in TRNSYS 18. I used Type 155 component to call a MATLAB script which includes an MPC algorithm.
In the MPC algorithm, I want to use the TRNSYS model as the prediction model in the optimization loop, so I want to call the TRNSYS model from MATLAB and run it for the next 24 hours with the prescribed initial conditions .
How can I do it? I could not prescribe initial conditions of TRNSYS components from MATLAB.

Buy the way, is there any better way to apply an MPC controller on a system simulated in TRNSYS?

Thank you very much in advance,

Best regards,
Amin


_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@lists.onebuilding.org
http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org
-- 
***************************
David BRADLEY
Principal
Thermal Energy System Specialists, LLC
3 North Pinckney Street - suite 202
Madison, WI  53703 USA

P:+1.608.274.2577
d.bradley@tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com