Using Model Predictive Control for Trajectory Optimization and to Meet Spacing Objectives