Estimation and Optimization Problems in Power Markets: Regime-Switching; Stochastic Programming