I dedicate this Work to my son.
particle swarm optimization is one the most well known based random search Algorithms in optimization.
In these codes and based on the references bellow, we introduce to you a fully connected regular autoencoder trained by PSO.
 M. N. Alam, “Particle Swarm Optimization : Algorithm and its Codes in MATLAB Particle Swarm Optimization : Algorithm and its Codes in MATLAB,” no. March, 2016.
 Y. Liu, B. He, D. Dong, Y. Shen, and T. Yan, “ROS-ELM: A Robust Online Sequential Extreme Learning Machine for Big Data Analytics,” Proc. ELM-2014 Vol. 1, Algorthims Theor., vol. 3, pp. 325–344, 2015.
 H. Zhou, G.-B. Huang, Z. Lin, H. Wang, and Y. C. Soh, “Stacked Extreme Learning Machines.,” IEEE Trans. Cybern., vol. PP, no. 99, p. 1, 2014.
BERGHOUT Tarek (2019). PSO for training a regular Autoencoder. (https://www.mathworks.com/matlabcentral/fileexchange/72388-pso-for-training-a-regular-autoencoder), MATLAB Central File Exchange. Retrieved .