The evolution of energy generation technologies has provided consumers with various on-site energy generation options including solar power systems (both photovoltaic and solar heating/cooling applications), wind energy installations, and micro-cogeneration. These advancements have enabled buildings with proprietary generation capabilities to play a crucial role in establishing Positive Energy Districts. This paper assesses the potential for self-generation by installing a combination of solar and wind power sources on a serial apartment building in Latvia coupled with an energy storage. An optimization technique with an objective to maximize economic benefit is employed in order to determine the optimal technological configuration considering the available space on the serial apartment building. Distinct time schedules of solar and wind power generation combined with varying consumption patterns of different buildings necessitate customized solutions for each building, particularly when space for installation is limited.