The Development of Optimal Control Based Real-Time Scheduling Model for Flexible Manufacturing Systems