This document describes simulating a cogeneration system within a smart energy network using TRNSYS software. It discusses: 1) The goals of finding sustainable energy solutions and simulating cogeneration systems within changing energy policies. 2) The basic concepts of cogeneration and smart energy networks. 3) The simulation of a cogeneration model for a site in Canada, including energy loads, system configuration, and modeling in TRNSYS. 4) The outputs of the simulation including hourly operating data for different facilities and recommendations to further optimize the system.