OSeMOSYS / OSeMOSYS_GNU_MathProg

The GNU MathProg implementation of OSeMOSYS
Apache License 2.0
9 stars 14 forks source link

Updating check statement No.1 (TotalAnnualMaxCapacityInvestment) #58

Closed vignesh1987 closed 3 years ago

vignesh1987 commented 3 years ago

Updating check statement No.1 to consider TotalAnnualMaxCapacityInvestment default values.

The check statement (No1) was modified to not perform the check when the default value of -1 is used for the TotalAnnualMaxCapacityInvestment parameter.

check{r in REGION, t in TECHNOLOGY, y in YEAR:TotalAnnualMaxCapacityInvestment[r, t, y]<>-1 && TotalAnnualMinCapacityInvestment[r, t, y]<>0}: TotalAnnualMaxCapacityInvestment[r, t, y]>=TotalAnnualMinCapacityInvestment[r, t, y];

willu47 commented 3 years ago

Thanks @vignesh1987 - this looks good and happy to merge. @HauHe - would you like to double check that this fixes your problem?

HauHe commented 3 years ago

Sure I can give if it a test.

HauHe commented 3 years ago

Works! Thanks a lot for the fix @vignesh1987! Will you merge it @willu47 ?