vicelab / cen-sierra-pywr

Code base for modeling the central Sierra Nevada hydropower systems
3 stars 5 forks source link

Piecewise linearization upgrade #161

Closed drheinheimer closed 2 years ago

drheinheimer commented 2 years ago

This PR replaces the original piecewise linearization scheme with one that uses the great pwlf package. This allows us to use an arbitrary number of pieces, rather than the original 4 or 8.

Additionally, it cleans up the energy_prices preprocessing folder, deleting unused files and simplifying the structure.

I have just tested the piecewise linearization script.

drheinheimer commented 2 years ago

@GustavoFacincani, in addition to deleting the piecewise-linearization branch, you can also delete the previous custom-piecewise-linearization branch.