MATLAB will still override that if the output arguments are different, but the function name is the same. I feel if we have both `solveTraj` and `solve` in  `TrajectoryOptimization`, then the user will only call `solveTraj`, and `solve` will not be called by the user, although it is accessible from the user. So it is better to combine them.