This work suggests a methodology to assist the designer during the planning phase of microgrids and eco-districts. A mixed integer linear programming model is designed to mathematically describe the different energy systems and the physical relations among them. Given the different electrical/thermal demand profiles, the micro grid’s topology and a set of boundary conditions, the model can identify the optimum mix of (poly-)generation units and energy storage systems, as well as the necessary district heating/cooling infrastructure. Both economic and energetic cost functions are defined to explore the problem from different perspectives. The described tool is applied to study an actual district of the NTU campus in Singapore, comprising 5 multi-purpose buildings and a district cooling network supplied by centralized electrical chillers. The planning tool was run to assess the optimal configuration that minimizes the overall cost (initial investment and O&M); the outcome results presented a layout and a mix of energy systems different from the present one. In particular, the optimal configuration results to be a district cooling system served by a mix of electrical chiller plant, trigeneration distributed energy system and sensible cold thermal energy storage.