An on-line optimization of a control signal usually requires significant computational power. However, for some optimization techniques it is possible to distribute relevant calculations in time. This submission demonstrates that the previously developed plug-in direct particle swarm (or multi-swarm) repetitive controller (PDPSRC or PDMSRC) can be implemented in an industrial microcontroller such as TMS320F2812 assuming only 64K words of external memory (as in TMS320F2812 eZdsp Starter Kit (DSK) -- socketed version). You do not need this starter kit nor a physical converter to run the code. The C-code is included as an S-Function and the PLECS Viewer (available free of charge at www.plexim.com) is employed to model the plant. Please remember to compile it, i.e. prior to running the model go to S-Function block and click Build. This code has been successfully executed on the above-mentioned DSC for 10 kHz sampling period. No code optimization, such as list based evolutionary optimization, is necessary -- standard rand() is used. Computational burden of the algorithm does not grow with increasing number of subswarms. Here the 10-swarm control algorithm is presented. For more information please see http://dx.doi.org/10.1007/978-3-319-11313-5_44 and http://dx.doi.org/10.1007/978-3-319-11310-4_15 and http://dx.doi.org/10.1515/bpasts-2015-0098 (December 2015) or visit http://ufnalski.edu.pl/proceedings/is2014/ .
Bartlomiej Ufnalski (2022). Time-distributed particle swarm repetitive control algorithm (https://www.mathworks.com/matlabcentral/fileexchange/48967-time-distributed-particle-swarm-repetitive-control-algorithm), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!