Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve the reporting on Industry FE price scaling during calibration #950

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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