Hello to everyone,
i have the following problem i can not solve. So on the one side I have consumers that need a certain amount of energy at a time. On the other side I have a generator plant that produce green electricity. The Problem is, that the demand can not alaways be satisfied by the generators. For this I use batteries. The are charged, if there is more then enough energy available.
The express this mathematically, I used a if then formulation: For the charging I use:
Demand(t) - Generator (t) >= 0 → Battery(t) = Battery(t-1)*(1-self-discharge-coeffizient)+((Demand(t)-Generator(t))*efficiency_Inverter*efficiency_Battery)
For the discharging
Demand(t) - Generator (t) <= 0 → Battery(t) = Battery(t-1)*(1 - self_discharge_coeffizient)+((Demand(t)-Generator(t))/efficiency_Inverter)
Demand(t), Generator(t) and Battery(t) are variables.
self_discharge_coeffizient, efficiency are parameters
I do not have any clue how to solve the problem in AIMMS. If anybody could help me, i would be very thankfull.