Complex energy networks optimization: Part II - Software application to a case study