Description Resource Path Location Type Name "tavail" does not exist. soclevel.mod /socvariation 12:10-16 E:/Haripriya/cplexoutput/socvariation/soclevel.mod OPL Outline Problem Marker
int t=24; int n=20; range t=1..tavail; range number =1..n; float soc[1][number]=[0.6,0.3,0.2,0.7,0.8,0.9,0.3,0.6,0.5,0.9,0.5]; //forcasted load at 0..4 float pl[tavail]=[10000000,7000000,9000000,6000000,12000000,6000000,4000000,15000000,9000000,12000000,6000000,8000000,10000000,7000000,9000000,6000000,12000000,6000000,4000000,15000000,9000000,12000000,6000000,8000000]; //target load at 0..11 float pt[tavail]=[10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000,10000000]; //bus voltage at 0..11 float v[tavail]=[240,232,229,233,230,235,228,234,227,229,231,230,226,232,233,230,236,233,231,232,232,233,233,230]; //bus voltage at target bus voltage at 0..11 float vt[tavail]=[230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230,230]; //decision variable charging power ev dvar float pevch[tavail][number] in 0..100000; //decision variable discharging power of ev dvar float pevdis[tavail][number] in 0..100000; dvar float soc[tavail][number] in 0..100000; //objective function minimize sum(i in tavail)((pt[i]-pl[i])+sum(j in number)-pevch[i][j]+sum(j in number)pevdis[i][j]); subject to forall(i in tavail,j in number) if(pt[i]-pl[i]<0 && 0.7<soc[j][i]<0.9&& v[i]<vt[i]) pevdis[i][j]==soc[j][i]*100000; soc[j][i+1]==0.8*soc[j][i];} else {pevdis[i][j]==0 ; soc[j][i+1]==soc[j][i];} forall(i in tavail,j in number) if(pt[i]-pl[i]>0 && 0.3<= soc[j][i]<=0.7 && v[i]>vt[i]) {pevch[i][j]==soc[j][i]*800000; soc[j][i+1]==1.1*soc[j][i];} else {pevch[i][j]==0; soc[i][j]==soc[i][j];} }