.SMArtInt.Tester.ExamplePI

Information

PI Controller Example

This package demonstrates how to replace a traditional PI controller with Recurrent Neural Networks (RNNs) within a Modelica simulation.

Two types of neural networks are integrated as surrogates for the PI controller:

Both networks are provided in TensorFlow Lite and ONNX formats and are incorporated into Modelica via SMArtInt interface blocks.

To validate the neural controllers, a step test applies a constant control deviation after 10 seconds. This allows observation of the proportional and integral actions compared to the traditional PI controller.

Additionally, a more complex scenario models a two-room temperature regulation system. Here, the PI controller adjusts heating based on an external temperature profile provided through a CombiTable. A physical reference model is included to compare against the neural network controllers.


Key Variables for Analysis

Step Test Model

For the step test where a constant control deviation is applied, monitor the following variables:

Two-Room Temperature Control Model

For the two-room temperature regulation scenario, important variables to observe include:

Contents

Name Description
 ReferenceModels
 TFLite Tensor Flow Lite Tester
 ONNX ONNX Tester

Generated at 2026-06-23T20:19:05Z by OpenModelicaOpenModelica 1.26.9 using GenerateDoc.mos