KTH-dESA / OSeMOSYS_step

Scripts to conduct myopic runs with OSeMOSYS models
MIT License
0 stars 2 forks source link

Rounding of solver tolerated values leaves too many values #71

Closed HauHe closed 1 year ago

HauHe commented 1 year ago

In the merge of ResidualCapacity and NewCapacity the New capacity is currently rounded to 4 digits behind the dot. However this still creates errors with TotalAnnualMaxCapacity limits. Since these limits are often having one digit behind the point I suggest to reduce the rounding to one digit behind the point. The alternative would be to use np.floor but that could potentially cause a significant loss of capacity between steps.

HauHe commented 1 year ago

Addressed in PR #73