Dynamic workforce allocation in a constrained flow shop with multi-agent system