Skip to content

Commit

Permalink
improve the reposting on Industry FE price scaling during calibration
Browse files Browse the repository at this point in the history
  • Loading branch information
0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q committed Jun 29, 2023
1 parent f58f505 commit 436a342
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions modules/29_CES_parameters/calibrate/preloop.gms
Original file line number Diff line number Diff line change
Expand Up @@ -1370,8 +1370,16 @@ loop ((t,regi_dyn29(regi),ue_industry_dyn37(out)),
if (sm_tmp ne 1,
loop (ue_industry_2_pf(out,ppfen_industry_dyn37(in)),
put pm_cesdata.tn(t,regi,in,"price"),
@60 pm_cesdata(t,regi,in,"price"), " x ",
sm_tmp, " = ";
@60 pm_cesdata(t,regi,in,"price"), " x ";
if (abs(sm_tmp - 1) lt 1e-2,
if (sm_tmp gt 1,
put "(1 + ", (sm_tmp - 1), ") = ";
else
put "(1 - ", (1 - sm_tmp), ") = ";
);
else
put " ", sm_tmp, " = ";
);

pm_cesdata(t,regi,in,"price")
= pm_cesdata(t,regi,in,"price")
Expand Down

0 comments on commit 436a342

Please sign in to comment.