A program for simulation and analysis of uninterruptible power supply (UPS) systems. Considering an output stage consisting of a half-bridge voltage source inverter (VSI) and output LC filter, it allows evaluating the operation of such electronic device for high-frequency switching and under different load conditions.

The program contains the following file types:
- MATLAB scripts for general settings and controller design
- Simulink implementation for digital-control simulation
- PSIM implementation for power-electronics simulation
Main file named as 'run_ups.m'.
The voltage regulator in UPSs aims to maintain the supplied output-voltage at quality levels accepted by standards such as IEC 62040-3. One solution for designing such output-voltage regulators are controllers based on the internal model principle (IMP), which in case of UPSs yield to the multi-resonant and repetitive controllers.
Consider a closed-loop in the form
employing a proportional-multiple-resonant (PMR) controller with transfer function
where
An appropriate design of
The control law shown can be rewritten as
where
An improved version of this program was used to design/analyze efficient digital controllers before implementing them in real UPS systems. In this context, the experimental result presented below aims to validate the applicability of such simulation enviroment.
Consider a desired sinusoidal output voltage with
where
The figures in sequence show the UPS output voltage,