-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1150 from Renato-Rodrigues/cm_flex_tax
potential fix to cm_flex_tax bug
- Loading branch information
Showing
3 changed files
with
2 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,26 +6,10 @@ | |
*** | Contact: [email protected] | ||
*** SOF ./modules/32_power/IntC/presolve.gms | ||
|
||
|
||
*** calculation of SE electricity price (useful for internal use and reporting purposes) | ||
pm_SEPrice(t,regi,entySE)$( abs(qm_budget.m(t,regi)) gt sm_eps | ||
AND sameas(entySE,"seel") ) | ||
= q32_balSe.m(t,regi,entySE) | ||
/ qm_budget.m(t,regi); | ||
|
||
if (cm_flex_tax eq 1, | ||
if (smin((t,regi)$( t.val ge 2025 ), pm_SEprice(t,regi,"seel")) lt 0, | ||
put logfile, | ||
"Negative seel prices with the potential to crash q32_flexAdj:" /; | ||
loop ((t,regi)$( pm_SEprice(t,regi,"seel") lt 0 AND t.val ge 2025 ), | ||
put pm_SEprice.tn(t,regi,"seel"), " = ", pm_SEprice(t,regi,"seel") /; | ||
); | ||
|
||
putclose " ", logfile /; | ||
|
||
execute_unload "abort.gdx"; | ||
abort "negative seel prices that could crash q32_flexAdj"; | ||
); | ||
); | ||
|
||
*** EOF ./modules/32_power/IntC/presolve.gms |