tum-ens / urbs

A linear optimisation model for distributed energy systems
GNU General Public License v3.0
185 stars 132 forks source link

Overpay factor calculation #310

Closed ZeroneCat closed 2 years ago

ZeroneCat commented 3 years ago

Hi I have checked the overpay_factor function, and notice that the op_time variable indicates the operational time after simulation horizon. Does op_time = n-k? (n for depreciation period, k for pays that fall in the planning horizon).

This variable could be less than 0 (when the capacity expires before sty_end, and leads to a overpay factor of 0. Btw, I compare the equations and feel the expression in the code is not consistent with the document.