-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MPC not fully reliable #212
Comments
To try out: Use julian_working_branch of smooth |
Grund, warum das Modell oben bei langem Zeithorizont mit linearem MPC nicht lösbar ist, liegt nach meiner Analyse genau an der Linearität die bei nahezuvollem Akku nicht angenommen werden kann. Genauer: Wenn E_max (charging) beim ersten Zeitschritt sehr sehr gering ist, weil die Batterie gerade voll ist, gilt der Wert in einer linearer MPC für den gesamten Zeithorizont auch wenn zwischendurch wieder entladen wird. Um auf den Vorteil von Linearität nicht verzichten zu müssen und es schnell umzusetzen, schlage ich vor:
Ob das für dich so ausreicht müssen wir nochmal am Donnerstag besprechen |
(...) |
example: (SOC_i*(1-loss_rate)- SOC_min) * eff_decharge = flow(bat->bel) In reality the value output from oemof is 160279,17 In this example which uses the battery down to SOC_min, one can see if smooth takes this rounded value the energy will not suffice to compensate for grid limitations by only smaller than 0.005. Same could appear in the other direction with SOC_max |
As a test it is possible to add this value 0.005 Ah, which is very small in comparison to in this case E_min = 50 000 Ah |
Obviously, to add this value is a hack. Although as 0.005 << 50000 (example E_bat,min) and the price per timestep is very low (0.181 / 1000) * 0.005 = 9.05 x 10^-7 |
As argued before the limitations for the battery's |
Full charging in one timestep is possible for c_rate=1 as p_max=battery_capacity is always bigger than battery_capacity - battery_capacity* SOC_min |
For similar reasons as for grid-cost-relation described in issue #212 comment, the vac_in/out and feed in tariff should be chosen so that the negative cost of charging and discharging is not profitable as well when using solar energy, which has no variable cost. I chose low feed_in tariff of -0.05 - 0.13 art_cost , medium vac +/- 0.10 and the from grid cost of 0.181 per kW: |
Without MPC: Battery from solar or from grid only:
Preview of possibility with MPC:
The text was updated successfully, but these errors were encountered: