Optimal Scheduling of Refinery Crude-Oil Operations