The optimal electric energy procurement problem under reliability constraints. (October 2017)