Microscopic Equations and Stability Conditions in Optimal Neural NetworksMicroscopic Equations in Rough Energy Landscapes for Neural Networks