The paper details the optimization of efficiency parameters for a InGaN TQW laser diode using the particle swarm optimization algorithm through SILVACO software. By adjusting layer thickness based on output power, slope efficiency, and threshold current, significant enhancements were achieved. Three optimized laser diodes (LD1, LD2, LD3) were compared with a primary LD, revealing notable improvements in output power and overall performance. Analysis of carrier recombination rates in the active region highlighted increased stimulated recombination and decreased non-radiative recombination, particularly in the n-side well. The study also showed a more uniform radiative recombination in the quantum wells of the optimized LDs, especially in LD3. Investigation of electron and hole concentrations, current densities, and energy levels demonstrated higher electron and hole current density in the optimized LDs, with LD3 exhibiting substantial improvements over the primary LD. Notably, the optimized LDs displayed reduced threshold current and improved slope efficiency compared to the primary LD. The study identified optimal layer thicknesses based on various cost functions, resulting in significant enhancements in output power (0.561 W), slope efficiency (2.515 W/A), and reduced threshold current (less than 0.029 A), indicative of enhanced TQW laser diode performance. Overall, the research showcases the effectiveness of the particle swarm optimization approach in optimizing GaN-based TQW laser diodes, leading to improved efficiency characteristics and demonstrating the potential for enhanced performance in practical applications.