This paper summarizes a methodology developed to optimize urban-scale energy mix. An optimal capacity estimation method based on energy credits is proposed, the objective of which is to plan renewable and alternative energy sources to yield zero (or positive) year-end energy credits. Several renewable and alternative energy resources are considered, including photovoltaic systems, solar thermal collectors, wind turbines, waste to energy (WtE) potential, as well as thermal seasonal storage. The methodology employs several energy simulation and optimization tools, including Energy Plus, TRNSYS and MATLAB. The optimization employs a non-linear process that uses objective function, boundaries and non-linear/linear constraints as input. The methodology is demonstrated on a hypothetical mixed-use neighborhood, designed to achieve high-energy performance objectives, with three scenarios of energy operations: 1) all electric, 2) all-electric except for DHW, and 3) DHW and space heating arenon-electric. The pilot location of this mixed-use neighborhood, including residential and commercial buildings, is Calgary (AB, Canada). For the all-electric scenario, PV systems implemented in all available south facing roof areas together with a limited number of wind turbines can achieve NZE status. For the other two scenarios, solar thermal collectors coupled to borehole thermal storage (STC and BTES) need to be considered. Although in all cases of the considered scenarios waste-based energy is not required, it can be used to shave the peak electric load, reducing the stress on the grid. This methodology can be employed for the design of an integrated urban energy systems, in different neighborhood designs, to achieve energy self-sufficient, or energy positive status.