4. Optimization Under Uncertainty# Sections 4.1. Stochastic Programming 4.2. Blocks and Other Pyomo Best Practices 4.3. Advanced Topics in Stochastic Programming 4.4. Risk Measures and Portfolio Optimization