GenXProject / GenX.jl

GenX: a configurable power system capacity expansion model for studying low-carbon energy futures. More details at : https://genx.mit.edu
https://genxproject.github.io/GenX.jl/
GNU General Public License v2.0
269 stars 114 forks source link

Refined DF Calculation in DDP for more general Expression for addressing variable length stages #680

Closed sambuddhac closed 5 months ago

sambuddhac commented 5 months ago

Description

This PR refines the evaluation of discount factor (DF) calculation in DDP making it more generic for variable length stages

What type of PR is this? (check all applicable)

Related Tickets & Documents

Fixes Issue #671 https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword

Checklist

How this can be tested

Tested it against 6_three_zones_with_multistage

Post-approval checklist for GenX core developers

After the PR is approved

sambuddhac commented 5 months ago

Thank you @sambuddhac! Approved it with some comments.

Thanks, @lbonaldo . I have incorporated all your suggestions. And have made sure to check the integrity of the code. Now, merging this to release branch.