Flow scheduling in scales: A study of optimality versus computational complexity