Text this: Optimal Allocation of Shared Manufacturing Resources Based on Bilevel Programming