where Soc_start is a scalar with a constant value but its value is used at the start only for i=1, after that from 2 to 24, Soc_start(i+1)=Soc_start(i)- Pch(i) + Pdch(i) as for Soc_start(2)=Soc_start(1)- Pch(1) + Pdch(1) for i=2 and so but I am unable to write this formulation. Can anyone help me please!

In lag or lead the variable should be a vector, here I am calculating the value on every interval i=1:24 and it is updated on every interval with a one value given at the start. So If anyone can help me in making logic for this.
In this equations:
Soc_start is scalar assigned a value at the start.
Soc_limitu(i) … Soc_start- Pch(i) + Pdch(i) =L= Soc_max;
Soc_limitl(i) … Soc_start- Pch(i) + Pdch(i) =G= Soc_min;
after i=1, it should be,
Soc=Soc_start- Pch(i) + Pdch(i) ;
and Soc_start=Soc; before going to the next iteration for i=2, How can I make this logic? can anyone help with this!