Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
H = 1..24;st ElectBattery{h in H}: ES[h]-ES[h-1]-P2S[h]*Efi['ESt']+PGEN['ESt',h]==0;
错误:ES[0] 超出域
单程:
ES[h]
0..24
1..24
ES[0]
ES[0]=10
如果您想要一个稳态解决方案,请使用:
ES[0] = ES[24]
取而代之的是,您还可以使用 if-then-else 构造,例如:
ES[h] - (if h=1 then ES[24] else ES[h-1]) - ..