上楼模型中,通过 set 模块将production type 和 duedate 写入属性,暂时只有两个产品类型。
0 s4 F+ C8 B0 K" F1 f前面的 equation 模块:
7 h" M. e; m, p, R6 U- \5 i if(qlong>=5&&full+long1<=3) {batch=1;bnum=min2(qlong,10);}* G$ u9 C4 a" I
else batch=0;( `5 k- | G% Y* d0 B/ K
后面的 queue equation模块:$ |! Z D( h. z) S; t$ A
rank=duedate;
1 L+ F1 ^3 c+ `. f) l if(edd>duedate) edd=duedate;7 k, t. d! m2 y, W4 y
priority=edd;& V& g7 U& c& v* U, ~5 |) }
if(long1==0) priority=10000;
# w; l9 \8 \: S3 I: j2 E2 @最后的decision模块,选择两队中EDD最小的进行加工。 |