I am working on a production planning problem where capacity allocation is driven by customer priority. Say, I have two customers C1 & C2 and two Plants P1 & P2. Demand for C1 should be satisfied before C2 (C1 demand is of higher priority than C2). So, capacity of P1 & P2 should be first allocated to produce C1 demand and leftover capacity should be allocated to C2 demand.
How to model this type of model in Constraint Programming? I am new to CP (I work on CPLEX mainly, but learning CP) and need help to learn it in right direction. Please suggest if any of the CP functions are helpful for this type of problems