This repository includes all the work related to the stochastic paper, titled: Stochastic portfolio optimization with recourse: open-source modeling the decarbonization of centralized heat networks.