The unpredictable nature of solar power generation poses significant challenges to energy management, particularly in power grids with high solar penetration, leading to potential imbalances between supply and demand. This has increased interest in developing accurate forecasting methods for photovoltaic power generation. This study focuses on short-term forecasting of solar power generation using MATLAB, based on historical generation trends through three different hybrid models. It uses a multilayer perceptron neural network as the forecasting tool, which is optimized through various algorithms to fine-tune the network's hyperparameters, such as the weights and biases of the input and hidden layers, for optimal performance. The Root Mean Square Error is used as the objective metric to minimize the discrepancy between actual and predicted values. The models use Particle Swarm Optimization (PSO), Imperialistic Competitive Algorithm, and Genetic Algorithm for network optimization. This research analyzes PV generation data from Belgium in July and August 2022, taken at 15-minute intervals, and evaluates model performance using six different error metrics, including Mean Absolute Error. The results show the accuracy and reliability in forecasting solar power generation time series.