All-perovskite two-terminal tandem solar cells, comprising two or more junctions, offer high power conversion efficiencies (PCEs) that exceed the limits of single-junction photovoltaics. Realizing high-efficiency SCs requires carefully optimizing the photoactive layer, front electrodes, and functional layers. Here, we first aim to determine the optimal device architecture, i.e., the perovskites bandgaps and optimum layer thicknesses, for standard test conditions (STCs). We then optimize the energy yield (EY) under realistic outdoor conditions (ROCs), i.e., the overall electrical energy to be expected in one year at a specific location. In the first step, we reference our simulation with two terminal all-perovskite triple-junction SCs (2T3J-PSCs) to previously experimentally realized PSC with a PCE of 20.1% as a benchmark to derive the underlying diode parameters and use our in-house energy yield code combined with a hybrid particle swarm optimization and gravitational search algorithm (PSOGSA) to find the optimal bandgap combination and perovskite layer thicknesses. The optimized SCs with the optimal bandgap combination offer a PCE of 25.1% with a current density of 10.1 mA/cm2. Furthermore, the effect of the other functional layers, such as transparent conductive oxide (TCO), hole transport layer (HTL), and recombination junctions (RJs), is also investigated to enhance the cell performance further. The SCs with optimized layers exhibit improved parameters: PCE of 27.1%, with a relative improvement of 34.8% in the PCE compared with the fabricated cell, and a high current matching a of 10.8 mA/cm2. The numerical results showed that the reported cell can potentially achieve a PCE of 36% at an eVoc/EG ratio of 0.72. However, the optimal parameters may vary in real-world operating conditions due to variations in temperature, humidity, and light exposure. As a result, the optimal energy yield (EY) parameters may differ. Therefore, the energy yield optimizing process is also carried out by considering ROCs in Phoenix, AZ, USA, to find the best parameters under these conditions. We found that the optimum top layer bandgap under ROCs is lower than under STCs due to a bluer, more shifted spectrum in ROCs. After that, the optimized cell under ROCs is tested in several locations exhibiting different climatic conditions (Seattle, Honolulu, Los Angeles, Miami, and Milwaukee). The numerical results show that the optimized cell under ROCs offers an increase in energy yield in several locations compared to conventional single-junction crystalline Si-SCs (PCE = 23.6%) with a high energy yield of 648.2 kWh/m2 in Phoenix, with an improvement of 39.9% in the EY compared to the Si-SC counterpart. Our results provide design guidelines for fabricating a highly efficient triple-junction perovskite SC in the lab and outdoor applications and improve the efficiency of 2T3J-PSCs beyond the 30% limit.