Multi-Agent Model-Based Optimization for Future Electrical Grids