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

David BRADLEY d.bradley at tess-inc.com
Fri May 17 06:27:16 PDT 2024


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 at 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 at tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20240517/3a76c5f2/attachment.htm>


More information about the TRNSYS-users mailing list