H= 1..24; s.t. ElectBattery{h in H}: ES[h]-ES[h-1]-P2S[h]*Efi['ESt']+PGEN['ESt',h]==0;
error: ES[0] out of domain
H= 1..24; s.t. ElectBattery{h in H}: ES[h]-ES[h-1]-P2S[h]*Efi['ESt']+PGEN['ESt',h]==0;
error: ES[0] out of domain
Copyright © 2021 Jogjafile Inc.
One way:
ES[h]is defined over0..24(instead of1..24)ES[0]to a known value by adding a constraintES[0]=10(say).If you want a steady-state solution, use:
ES[0] = ES[24]Instead of this, you can also use an if-then-else construct like: