A system for allocating a complex resource in manufacturing