How to couple MATLAB with IDA ICE?

5 次查看(过去 30 天)
Rakesh Ramesh
Rakesh Ramesh 2022-9-7
回答: Muskan 2023-2-21
Hi all,
I am trying to model a model predictive control for a building in IDA-ICE. I was wondering if you might be able to help me with the coupling between MATLAB and IDA. I want MATLAB to run the IDA-ICE simulation for a predictive horizon of 24 hours and then choose the action with the objective of minimising cost and sending this control action back to IDA and the process should be repeated. I would be grateful if someone could help me with this development of MPC with IDA&MATLAB or just any control and optimisation between IDA ICE and MATLAB.
Thanks in advance

回答(1 个)

Muskan
Muskan 2023-2-21
Hi Rakesh,
The IDA ICE API, which permits bi-directional communication between IDA ICE and other programs, can be used to connect MATLAB with IDA ICE.
As per my understanding, these are the basic steps to combine MATLAB with IDA ICE:
  1. Installation of IDA-ICE and MATLAB and then open a new or an existing project.
  2. Choose “API” from the “Tools” menu in IDA ice. To register the IDA ICE API, select the “Register” button in the “API” dialogue box.
  3. Use the actxserver function in MATLAB to generate a Component Object Model (COM), a server object, that enables communication between MATLAB and ICA IDE.
  4. To send commands to the IDA ICE from MATLAB, “Invoke” method of the newly created object can be used.
  5. And finally to retrieve data from IDA ICE to MATLAB, “Get” method of the newly created object can be used.
I hope the above information will be helpful to you.
Cheers,
Muskan

类别

Help CenterFile Exchange 中查找有关 Model Predictive Control Toolbox 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by