Hi,I want to build a model of Optimizing valve control,one of equations is to promise that the continuous opening time is equal to emptying time at least。But I meet error 149,please help me how to correct it?

Thanks

```
sets
i detention reservoir /Jinlong,Chiao,Shijing,Shangyang/
t time /0*23/
;
Parameters
ton(i) how long to dry the reservoir (hour)
/Jinlong = 7,
Chiao = 4,
Shijing = 6,
Shangyang = 5
/
;
binary variables
qiBiZhangtai(i,t) on or off
kaiFaDongZuo(i,t) when to turn on
;
Equations
Lianxuxing(i)
;
Lianxuxing(i)..
sum(t$(ord(t)<=ton(i)),kaiFaDongZuo(i,t)) + sum(t$((ord(t)>=ord(t)-ton(i)+1)and(ord(t)>ton(i))),kaiFaDongZuo(i,t)) =l= qiBiZhangtai(i,t)
```