The paper explores the optimization of a renewable energy system for a self-sustained residential apartment in Tlemcen, Algeria, focusing on solar and wind energy sources. It concludes that a photovoltaic system is more effective than a hybrid solar-wind system due to the region's low wind speeds. The study provides methodologies for determining the optimal design and component sizing to ensure reliable energy supply from these renewable resources.