Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
flohump committed Jun 15, 2024
1 parent 1050681 commit 7c47023
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions modules/30_croparea/detail_apr24/presolve.gms
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ else

* create betr target and penalty scenario
i30_betr_target(t,j) = (1-i30_betr_scenario_fader(t)) *
(s30_betr_start * sum(cell(i,j), p29_country_weight(i))
+ s30_betr_start_noselect * sum(cell(i,j), 1-p29_country_weight(i)))
(s30_betr_start * sum(cell(i,j), p30_country_weight(i))
+ s30_betr_start_noselect * sum(cell(i,j), 1-p30_country_weight(i)))
+ i30_betr_scenario_fader(t) *
(s30_betr_target * sum(cell(i,j), p29_country_weight(i))
+ s30_betr_target_noselect * sum(cell(i,j), 1-p29_country_weight(i)));
(s30_betr_target * sum(cell(i,j), p30_country_weight(i))
+ s30_betr_target_noselect * sum(cell(i,j), 1-p30_country_weight(i)));

if (m_year(t) <= s30_betr_scenario_start,
i30_betr_penalty(t) = 0;
Expand Down
8 changes: 4 additions & 4 deletions modules/30_croparea/simple_apr24/presolve.gms
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ crpmin30(crp30) = yes$(f30_rotation_min_shr(crp30) > 0);

* create betr target and penalty scenario
i30_betr_target(t,j) = (1-i30_betr_scenario_fader(t)) *
(s30_betr_start * sum(cell(i,j), p29_country_weight(i))
+ s30_betr_start_noselect * sum(cell(i,j), 1-p29_country_weight(i)))
(s30_betr_start * sum(cell(i,j), p30_country_weight(i))
+ s30_betr_start_noselect * sum(cell(i,j), 1-p30_country_weight(i)))
+ i30_betr_scenario_fader(t) *
(s30_betr_target * sum(cell(i,j), p29_country_weight(i))
+ s30_betr_target_noselect * sum(cell(i,j), 1-p29_country_weight(i)));
(s30_betr_target * sum(cell(i,j), p30_country_weight(i))
+ s30_betr_target_noselect * sum(cell(i,j), 1-p30_country_weight(i)));

if (m_year(t) <= s30_betr_scenario_start,
i30_betr_penalty(t) = 0;
Expand Down

0 comments on commit 7c47023

Please sign in to comment.