上楼模型中,通过 set 模块将production type 和 duedate 写入属性,暂时只有两个产品类型。/ ^6 T9 P9 t; J# z; V" G+ f) Q
前面的 equation 模块:* y% R7 b" q) A, d
if(qlong>=5&&full+long1<=3) {batch=1;bnum=min2(qlong,10);}
/ s0 |& T9 ~; l, q else batch=0;
# T4 D S7 m. P. O7 Q! Z* u后面的 queue equation模块:$ s' {+ P) t1 |2 b
rank=duedate;
7 c3 Z, ~7 w* `/ E if(edd>duedate) edd=duedate;
3 m# {) M( b) q1 p/ N priority=edd;
' E! x5 K! y9 [5 F- [% e* ?% y if(long1==0) priority=10000;
6 p Y) ], E+ F! p最后的decision模块,选择两队中EDD最小的进行加工。 |