rl-institut / offgridders

Models and optimizes capacity & dispatch of electricity supply systems, off-grid or connected to a (weak) central grid
GNU General Public License v3.0
23 stars 9 forks source link

[Bug] KPI `operation_management_expenditures` is not calculated correctly #111

Open smartie2076 opened 4 years ago

smartie2076 commented 4 years ago

The operation_management_expenditures are not calculated correctly starting here and updated here and here.

Instead of calculating

\sum (CAP_i * annuity OM) + annual fuel expenditures * annuity factor + \sum (dispatch/wear cost_i * annual dispatch_i* annuity factor) 

It calculates

\sum (annuity OM) + annual fuel expenditures * annuity factor + \sum (dispatch/wear cost_i * annual dispatch_i*) 

This results, of couse, in wrong OM costs!

smartie2076 commented 4 years ago

Hi @marc-juanpera! Is the way that the operation_management_expenditures are calculated right now the way they should be for the MCA module H? Some feedback would be very much appreciated, because we will have to change it otherwise.