The design of a vehicle launch comprises many factors, including the optimization of the climb path and the distribution of the mass in stages. The optimization process has been addressed historically from different points of view, using proprietary software solutions to obtain an ideal mass distribution among stages. In this research, we propose software for the separate optimization of the trajectory of a launch rocket, maximizing the payload weight and the global design, while varying the power plant selection. The launch is mathematically modeled considering its propulsive, gravitational, and aerodynamical aspects. The ascent trajectory is optimized by discretizing the trajectory using structural and physical constraints, and the design accounts for the mass and power plant of each stage. The optimization algorithm is checked against various real rockets and other modeling algorithms, obtaining differences of up to 9%.