Optimization and Risk Management