Combinatorial Models for Manufacturing: Optimizing Flow Management in Flexible Production Systems