Managed pressure drilling (MPD) technology in slim-hole horizontal wells has gradually gained widespread applications in oil and gas development. However,balancing bottomhole pressure control and wellbore cleanup remains a challenge when drilling in formations with a narrow density window. To address this issue,this paper proposes a method based on the genetic algorithm combined with dual physical constraints,to optimize key parameters such as the drilling fluid density,rheology,flow rate,drillpipe rotation speed,and wellhead backpressure. Through global optimization,the method controls the increment of equivalent circulating density (ECD),significantly improves wellbore cleanup,expands the allowable range of drilling fluid density,and reduces the probability of complex drilling incidents. Engineering case validation shows that the optimized design aligns well with field applications,resulting in significant improvements in both drilling efficiency and wellbore safety. The findings of this research provide theoretical support and practical guidance for broader applications of MPD in slim-hole horizontal wells.