Alberto Leva
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Previous Organizations / Institutes
The organizations / institutes from the scholar's other articles in the past ten years
Alberto Leva has a total of 124 co-authors. Here are the top co-authors by number of shared publications:
- Alessandro Vittorio Papadopoulos
Mälardalen University
31 shared publications Martina Maggio
Lund University
31 shared publications- Luigi Piroddi
Dipartimento di Elettronica, Informazione e Bioingegneria, Politecnico di Milano, Milano, Italy
20 shared publications Federico Terraneo
18 shared publications- Luca Bascetta
Politecnico di Milano
16 shared publications - Federico Terraneo
Politecnico di Milano
14 shared publications
Latest Publications
- Open Access
- 27 March 2026
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Control Systems Technology
- Vol. 34 (3) , 1193-1203
An Anti-Windup Technique to Optimize Closed-Loop Postsaturation Transients
We present an anti-windup technique, independent of the controller structure, targeted at optimizing the transients that the controlled variable and the control input undergo when the latter exits saturation, which is an aspect where the available techniques offer hardly any control. We formulate the problem as a constrained quadratic optimization one, and obtain for it an analytic solution. This solution provides a value to which we reset the controller state on exiting saturation. The resulting implementation is computationally lightweight, hence readily applicable to industrial controllers. The reported simulation and experimental results evidence its ease of use, together with the yielded advantages.
- 27 March 2026
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Control Systems Technology
- Vol. 34 (3) , 1193-1203
Open AccessAn Anti-Windup Technique to Optimize Closed-Loop Postsaturation Transients
We present an anti-windup technique, independent of the controller structure, targeted at optimizing the transients that the controlled variable and the control input undergo when the latter exits saturation, which is an aspect where the available techniques offer hardly any control. We formulate the problem as a constrained quadratic optimization one, and obtain for it an analytic solution. This solution provides a value to which we reset the controller state on exiting saturation. The resulting implementation is computationally lightweight, hence readily applicable to industrial controllers. The reported simulation and experimental results evidence its ease of use, together with the yielded advantages.
- Open Access
- 24 October 2025
- Published by Linkoping University Electronic Press in Swedish Aerospace Conference, FT2025
- Vol. 218, 603-609
On the precise and efficient representation of industrial controllers in Modelica
This paper highlights some still-open issues in theModelica representation of industrial controllers,particularly when simulation efficiency must balance withfidelity to their real-world implementation as digitalcomponents of cyber-physical systems. The treatise focuseson PID controllers due to their predominant role, thoughthe ideas readily extend to virtually any other controlstructure. The aim is to stimulate discussion around thisimportant yet often overlooked topic, while also suggestingdirections for future development.
- 24 October 2025
- Published by Linkoping University Electronic Press in Swedish Aerospace Conference, FT2025
- Vol. 218, 603-609
Open AccessOn the precise and efficient representation of industrial controllers in Modelica
This paper highlights some still-open issues in theModelica representation of industrial controllers,particularly when simulation efficiency must balance withfidelity to their real-world implementation as digitalcomponents of cyber-physical systems. The treatise focuseson PID controllers due to their predominant role, thoughthe ideas readily extend to virtually any other controlstructure. The aim is to stimulate discussion around thisimportant yet often overlooked topic, while also suggestingdirections for future development.
- Open Access
- 18 March 2025
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Autonomous and Adaptive Systems
- Vol. 20 (1) , 1-18
Calibration-Free Feedforward Temperature Compensation for Wireless Clock Synchronisation
Wireless systems are entering the arena of time-critical applications, including industrial controls. This makes clock synchronisation vital. A relevant source of synchronisation errors, especially in heavy-duty applications and harsh environments, is given by temperature variations that affect the quartz oscillators. This article takes a control theory-based approach and proposes to augment clock synchronisation schemes—that are typically feedback-based—with a feedforward compensation path using temperature measurements to quickly react to temperature change. Unlike previous approaches relying on per-device data, our solution takes advantage of the combined feedforward-feedback nature of the control scheme to perform compensation using only nominal crystal parameters. When implemented in conjunction with the FLOPSYNC-2 feedback-based clock synchronisation scheme and tested both in simulation and experimentally, the approach resulted in a greatly reduced synchronisation error during temperature transients. In detail, Monte Carlo simulations show that the proposed solution can reduce the peak clock synchronisation error on average by 5.3 \(\times\) and in the worst case by 2.2 \(\times\) , thus proving applicable and effective without the need for a costly per-device calibration. When tested experimentally on a network of sensor nodes, a 3.3 \(\times\) peak clock synchronisation error improvement was observed, confirming the simulation predictions.- 18 March 2025
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Autonomous and Adaptive Systems
- Vol. 20 (1) , 1-18
Open AccessCalibration-Free Feedforward Temperature Compensation for Wireless Clock Synchronisation
Wireless systems are entering the arena of time-critical applications, including industrial controls. This makes clock synchronisation vital. A relevant source of synchronisation errors, especially in heavy-duty applications and harsh environments, is given by temperature variations that affect the quartz oscillators. This article takes a control theory-based approach and proposes to augment clock synchronisation schemes—that are typically feedback-based—with a feedforward compensation path using temperature measurements to quickly react to temperature change. Unlike previous approaches relying on per-device data, our solution takes advantage of the combined feedforward-feedback nature of the control scheme to perform compensation using only nominal crystal parameters. When implemented in conjunction with the FLOPSYNC-2 feedback-based clock synchronisation scheme and tested both in simulation and experimentally, the approach resulted in a greatly reduced synchronisation error during temperature transients. In detail, Monte Carlo simulations show that the proposed solution can reduce the peak clock synchronisation error on average by 5.3 \(\times\) and in the worst case by 2.2 \(\times\) , thus proving applicable and effective without the need for a costly per-device calibration. When tested experimentally on a network of sensor nodes, a 3.3 \(\times\) peak clock synchronisation error improvement was observed, confirming the simulation predictions. - 14 February 2025
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Industrial Informatics
- Vol. 21 (5) , 3871-3879
Simulation-Based Design of Industry-Size Control Systems With Formal Quality Guarantees
Realistic industrial systems typically need to be modeled as hybrid systems consisting of hundreds (easily thousands) of nonlinear differential algebraic equations (DAEs). The size of such models is one of the major obstacles to overcome when developing automated design methods for industrial control systems. In this article, we present a scenario-based approach that, by exploiting the synergies among simulation, black-box optimization, and statistical model checking, allows us to automate the design of quality-guaranteed industry-size control systems, i.e., control systems for which a user-specified statistical guarantee on correctness holds over the possible operational scenarios. We show the effectiveness of our approach through a Modelica model consisting of a hybrid nonlinear DAE system with 1276 equations, 492 of which are nontrivial, containing 152 continuous state variables and 38 discrete ones, plus 7 algorithm blocks. Our experiments show that within a few hours of computation on an off-the-shelf workstation, we can find quality-guaranteed solutions (with very tight quality guarantees) to our design problem. We also compute an entire discretized Pareto front for such a large system over two conflicting key performance indicators.
- 14 February 2025
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Industrial Informatics
- Vol. 21 (5) , 3871-3879
Simulation-Based Design of Industry-Size Control Systems With Formal Quality Guarantees
Realistic industrial systems typically need to be modeled as hybrid systems consisting of hundreds (easily thousands) of nonlinear differential algebraic equations (DAEs). The size of such models is one of the major obstacles to overcome when developing automated design methods for industrial control systems. In this article, we present a scenario-based approach that, by exploiting the synergies among simulation, black-box optimization, and statistical model checking, allows us to automate the design of quality-guaranteed industry-size control systems, i.e., control systems for which a user-specified statistical guarantee on correctness holds over the possible operational scenarios. We show the effectiveness of our approach through a Modelica model consisting of a hybrid nonlinear DAE system with 1276 equations, 492 of which are nontrivial, containing 152 continuous state variables and 38 discrete ones, plus 7 algorithm blocks. Our experiments show that within a few hours of computation on an off-the-shelf workstation, we can find quality-guaranteed solutions (with very tight quality guarantees) to our design problem. We also compute an entire discretized Pareto front for such a large system over two conflicting key performance indicators.
- Open Access
- 14 September 2024
- Published by Elsevier in Chemical Engineering Journal
- Vol. 499
Towards maximization of parameters identifiability: Development of the CalOpt tool and its application to the anaerobic digestion model
- 14 September 2024
- Published by Elsevier in Chemical Engineering Journal
- Vol. 499
Open AccessTowards maximization of parameters identifiability: Development of the CalOpt tool and its application to the anaerobic digestion model
- Open Access
- 22 December 2023
- Published by Linkoping University Electronic Press in Swedish Aerospace Conference, FT2025
- Vol. 204, 13-22
MARCO: An Experimental High-Performance Compiler for Large-Scale Modelica Models
This paper introduces MARCO, a research compiler aimed at the efficient generation of efficient simulation code from a large-scale Modelica model. MARCO’s design goals, requirements, and specifications are dis- cussed in the paper, as well as the software architec- ture, the current development status, and a future develop- ment roadmap. The results of two test cases demonstrate MARCO’s capability to handle non-trivial Modelica mod- els with over 10 million equations very efficiently.
- 22 December 2023
- Published by Linkoping University Electronic Press in Swedish Aerospace Conference, FT2025
- Vol. 204, 13-22
Open AccessMARCO: An Experimental High-Performance Compiler for Large-Scale Modelica Models
This paper introduces MARCO, a research compiler aimed at the efficient generation of efficient simulation code from a large-scale Modelica model. MARCO’s design goals, requirements, and specifications are dis- cussed in the paper, as well as the software architec- ture, the current development status, and a future develop- ment roadmap. The results of two test cases demonstrate MARCO’s capability to handle non-trivial Modelica mod- els with over 10 million equations very efficiently.
- Open Access
- 19 September 2023
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Mathematical Software
- Vol. 49 (3) , 1-25
Array-Aware Matching: Taming the Complexity of Large-Scale Simulation Models
Equation-based modelling is a powerful approach to tame the complexity of large-scale simulation problems. Equation-based tools automatically translate models into imperative languages. When confronted with nowadays’ problems, however, well assessed model translation techniques exhibit scalability issues that are particularly severe when models contain very large arrays. In fact, such models can be made very compact by enclosing equations into looping constructs, but reflecting the same compactness into the translated imperative code is nontrivial. In this paper, we face this issue by concentrating on a key step of equations-to-code translation, the equation/variable matching. We first show that an efficient translation of models with (large) arrays needs awareness of their presence, by defining a figure of merit to measure how much the looping constructs are preserved along the translation. We then show that the said figure of merit allows to define an optimal array-aware matching, and as our main result, that the so stated optimal array-aware matching problem is NP-complete. As an additional result, we propose a heuristic algorithm capable of performing array-aware matching in polynomial time. The proposed algorithm can be proficiently used by model translator developers in the implementation of efficient tools for large-scale system simulation.
- 19 September 2023
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Mathematical Software
- Vol. 49 (3) , 1-25
Open AccessArray-Aware Matching: Taming the Complexity of Large-Scale Simulation Models
Equation-based modelling is a powerful approach to tame the complexity of large-scale simulation problems. Equation-based tools automatically translate models into imperative languages. When confronted with nowadays’ problems, however, well assessed model translation techniques exhibit scalability issues that are particularly severe when models contain very large arrays. In fact, such models can be made very compact by enclosing equations into looping constructs, but reflecting the same compactness into the translated imperative code is nontrivial. In this paper, we face this issue by concentrating on a key step of equations-to-code translation, the equation/variable matching. We first show that an efficient translation of models with (large) arrays needs awareness of their presence, by defining a figure of merit to measure how much the looping constructs are preserved along the translation. We then show that the said figure of merit allows to define an optimal array-aware matching, and as our main result, that the so stated optimal array-aware matching problem is NP-complete. As an additional result, we propose a heuristic algorithm capable of performing array-aware matching in polynomial time. The proposed algorithm can be proficiently used by model translator developers in the implementation of efficient tools for large-scale system simulation.
- 11 April 2023
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Circuits and Systems Magazine
- Vol. 23 (1) , 36-56
Modeling and Simulation Challenges and Solutions in Cooling Systems for Nanoscale Integrated Circuits [Feature]
The power density in modern Integrated Circuits (ICs) is tremendous. For example, Multi-Processor Systems-on-Chip (MPSoCs) nowadays undergo temperature swings of 40 degrees in 100 milliseconds or less, with rapidly emerging and vanishing sub-millimeter hot spots. As such, not only a simulation-based cooling assessment is vital, but one has to simulate the on-chip thermal phenomena jointly with the heat dissipation system - historically, a challenge. In recent years, however, the idea of coupling traditional 3D chip simulators with heat dissipation models written in Equation-Based Modeling (EBM) languages has proven to be a game changer. EBM languages allow one to compose a model by assembling components described in terms of Differential and Algebraic Equations (DAE) and have the simulation code generated automatically. In this article, we take a tutorial viewpoint on the matter just sketched, to put the reader in the position of exploiting the above technology. We also present the first nucleus of a model library for cooling systems, that we release as free software for the scientific and engineering community.
- 11 April 2023
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Circuits and Systems Magazine
- Vol. 23 (1) , 36-56
Modeling and Simulation Challenges and Solutions in Cooling Systems for Nanoscale Integrated Circuits [Feature]
The power density in modern Integrated Circuits (ICs) is tremendous. For example, Multi-Processor Systems-on-Chip (MPSoCs) nowadays undergo temperature swings of 40 degrees in 100 milliseconds or less, with rapidly emerging and vanishing sub-millimeter hot spots. As such, not only a simulation-based cooling assessment is vital, but one has to simulate the on-chip thermal phenomena jointly with the heat dissipation system - historically, a challenge. In recent years, however, the idea of coupling traditional 3D chip simulators with heat dissipation models written in Equation-Based Modeling (EBM) languages has proven to be a game changer. EBM languages allow one to compose a model by assembling components described in terms of Differential and Algebraic Equations (DAE) and have the simulation code generated automatically. In this article, we take a tutorial viewpoint on the matter just sketched, to put the reader in the position of exploiting the above technology. We also present the first nucleus of a model library for cooling systems, that we release as free software for the scientific and engineering community.
- 7 February 2023
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Industrial Informatics
- Vol. 19 (11) , 11080-11090
Efficient Control Representation in Digital Twins: An Imperative Challenge for Declarative Languages
Digital twins (DTs) are enablers for the fast optimization processes required in the Industry 4.0 context. Declarative equation-based modeling languages, in turn, enable the creation of large-scale simulation-based DTs, as they relieve the analyst from creating the solution code. However, most industrial assets are cyber-physical systems, the cyber part being their digital controls. With the available technology, a precise representation of modulating and logic controls conflicts with DT simulation performance. The result is a barrier to using DTs for system-level optimization. We analyze the problem, propose a modeling paradigm to solve it, and suggest how to integrate that paradigm into equation-based language compilers. We support our proposal by presenting a Modelica/C++ library, which we release as free software, built according to the said paradigm.
- 7 February 2023
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Industrial Informatics
- Vol. 19 (11) , 11080-11090
Efficient Control Representation in Digital Twins: An Imperative Challenge for Declarative Languages
Digital twins (DTs) are enablers for the fast optimization processes required in the Industry 4.0 context. Declarative equation-based modeling languages, in turn, enable the creation of large-scale simulation-based DTs, as they relieve the analyst from creating the solution code. However, most industrial assets are cyber-physical systems, the cyber part being their digital controls. With the available technology, a precise representation of modulating and logic controls conflicts with DT simulation performance. The result is a barrier to using DTs for system-level optimization. We analyze the problem, propose a modeling paradigm to solve it, and suggest how to integrate that paradigm into equation-based language compilers. We support our proposal by presenting a Modelica/C++ library, which we release as free software, built according to the said paradigm.
- 23 September 2021
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Control Systems Technology
- Vol. 30 (4) , 1510-1524
A Multitransmission Event-Based Architecture for Energy-Efficient Autotuning Wireless Controls
We propose a periodic event-based control scheme in which, when the sensor triggers an event, also past and subsequent values of the controlled variable are transmitted. We employ this idea to obtain a stability condition independent of the used event-triggering mechanism. In turn, we exploit this independence to devise a methodology for extending existing controller (auto)tuning rules to the event-based setting and provide an example with the internal model control PID (IMC-PID) rule. We then abstract the functionalities that a wireless sensor node has to offer for implementing our scheme and finally present such a node, physically realized in a completely hardware-based form to the advantage of both energy efficiency and security. Simulations results and experiments with the so-obtained control architecture (wireless sensor node plus event-based IMC-PID) are reported.
- 23 September 2021
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Control Systems Technology
- Vol. 30 (4) , 1510-1524
A Multitransmission Event-Based Architecture for Energy-Efficient Autotuning Wireless Controls
We propose a periodic event-based control scheme in which, when the sensor triggers an event, also past and subsequent values of the controlled variable are transmitted. We employ this idea to obtain a stability condition independent of the used event-triggering mechanism. In turn, we exploit this independence to devise a methodology for extending existing controller (auto)tuning rules to the event-based setting and provide an example with the internal model control PID (IMC-PID) rule. We then abstract the functionalities that a wireless sensor node has to offer for implementing our scheme and finally present such a node, physically realized in a completely hardware-based form to the advantage of both energy efficiency and security. Simulations results and experiments with the so-obtained control architecture (wireless sensor node plus event-based IMC-PID) are reported.