上楼模型中,通过 set 模块将production type 和 duedate 写入属性,暂时只有两个产品类型。 z1 {3 v; l6 }1 w0 j% p* c- Y
前面的 equation 模块:
' w `$ X' R& P if(qlong>=5&&full+long1<=3) {batch=1;bnum=min2(qlong,10);}! K) R, r" v9 H& w6 [' G
else batch=0;* J+ I) E- r. V6 j' b# E
后面的 queue equation模块:, F- p. K/ n6 U$ c% C7 \
rank=duedate;
- [0 l. F: c. x4 R. j if(edd>duedate) edd=duedate;$ M. m6 G* I1 f: [, c$ c0 g5 D
priority=edd;
3 y% ^& y& o7 y. Q1 A, h5 B% g0 t( G if(long1==0) priority=10000;
# L5 J! J _+ h9 k9 I( m( u最后的decision模块,选择两队中EDD最小的进行加工。 |