Minimum-time feedforward control with input and output constraints