Skip to content

Commit

Permalink
Merge pull request #1376 from 0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q/fix/fe…
Browse files Browse the repository at this point in the history
…el_steel_secondary_LO

add lower bound for feel_steel_secondary that is markedly higher than sm_eps to improve CONOPT convergence
  • Loading branch information
0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q authored Aug 14, 2023
2 parents cc10299 + f3abf7d commit 8ecf8fb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions modules/37_industry/subsectors/bounds.gms
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,23 @@ $endif.CES_parameters
vm_cesIO.fx("2005",regi,ppfkap_industry_dyn37(in))
= pm_cesdata("2005",regi,in,"quantity");

*** Set lower bound for secondary steel electricity to 1 % of the lowest
*** existing lower bound (should be far above sm_eps) to avoid CONOPT getting
*** lost in the woods.
loop (in$( sameas(in,"feel_steel_secondary") ),
vm_cesIO.lo(t,regi,in)$( t.val ge cm_startyear
AND vm_cesIO.lo(t,regi,in) le sm_eps )
= max(
sm_eps,
( 0.01
* smax(ttot$( vm_cesIO.lo(ttot,regi,in) gt sm_eps),
vm_cesIO.lo(ttot,regi,in)
)
)
);
);

*** Default lower bounds on all industry pfs
vm_cesIO.lo(t,regi_dyn29(regi),in_industry_dyn37(in))$(
0 eq vm_cesIO.lo(t,regi,in) )
= sm_eps;
Expand Down

0 comments on commit 8ecf8fb

Please sign in to comment.