上楼模型中,通过 set 模块将production type 和 duedate 写入属性,暂时只有两个产品类型。% `* ?5 x- C. z9 g
前面的 equation 模块:8 }; p' J. C4 A
if(qlong>=5&&full+long1<=3) {batch=1;bnum=min2(qlong,10);} 1 @# M% A; y1 Y. D# e P( D& } else batch=0; / {! f; e8 T5 g1 C- t A- o后面的 queue equation模块: 5 S1 k: Y- |- v' p rank=duedate; * z, H9 ~( [$ @2 r N if(edd>duedate) edd=duedate;$ u) A2 I' E9 _; b1 l
priority=edd; ' g. [1 P& g& t Y if(long1==0) priority=10000; # @" L) k. M# d' @最后的decision模块,选择两队中EDD最小的进行加工。