Problem:
2 sources-- each source represents a lot type (e.g. type A has urgency of 1, type B has urgency of 2). These 2 sources has different arrival rate, once they arrive at queue, there is an equation/logic to calculate their order in waiting line (e.g. priority=urgency*coef1+current wait time*coef2, and each arrival's rank in waiting line is ordered with decreasing priority--larger priority value means front of line)
It is a dynamic model, current wait time need to be considered in priority calculation, and change over time.
What procedure should I follow to do such ranking logic?