我的這個(gè)數(shù)組shuzu的MAST程序如下,請(qǐng)各位高手看看問(wèn)題出在哪里.
#本模型是離散化的數(shù)組
#P[MAX]=P[0]+P[1]+...+P[MAX-1]
encrypted \
element template shuzu smpt in out=max,init
state nu smpt,in,out
number max
number init[*]=[0]
{
state nu dout
number k=0
state nu x=1
when(event_on(smpt)){
if(max<=100){
if(k
dout=p[k]
++k
}
}
schedule_event(time,out,dout)
}
}