The energy storage model has the following constraint. Is it affecting my program as I could not identify what is causing the problem for the simulation for more than 18 time period?
CONS_CAES = [ CONS_CAES;
H(1,T+1)-H(1,T)==((h(1,T)*etaex*deltat-h(2,T)*deltat/etaex))/(baseMVA*1000);
pr(1,T+1)-pr(1,T)==Kp*(m(1,T)-m(2,T))/1000;
];