Real-time implementation of optimal control considering gear shifti...