A Robust Scientific Machine Learning for Optimization: A Novel Robustness Theorem