Numerical Optimization Techniques for Power Grid Forecasting Stability Analysis in Senegal: A Theoretical Framework | Synapse