How to couple MATLAB with IDA ICE?

5 views (last 30 days)
Rakesh Ramesh
Rakesh Ramesh on 7 Sep 2022
Answered: Muskan on 21 Feb 2023
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

Answers (1)

Muskan
Muskan on 21 Feb 2023
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

Categories

Find more on Model Predictive Control Toolbox in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!