Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
flohump committed Sep 24, 2024
1 parent 7e22298 commit 6b93227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/70_livestock/fbask_jan16_sticky/presolve.gms
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ else

*' @stop

p70_cost_share_calibration(i) = f70_hist_cap_share("y2010",i)-(f70_cap_share_reg("slope")*log10(sum(i_to_iso(i,iso),(im_gdp_pc_ppp_iso("y2010",iso) * fm_gdp_defl_ppp)))+f70_cap_share_reg("intercept"));
p70_cost_share_calibration(i) = f70_hist_cap_share("y2010",i)-(f70_cap_share_reg("slope")*log10(sum(i_to_iso(i,iso),(im_gdp_pc_ppp_iso("y2010",iso) * fm_gdp_defl_ppp(iso))))+f70_cap_share_reg("intercept"));

if (m_year(t)<2010,
p70_cost_share_livst(t,i,"capital") = f70_hist_cap_share(t,i);
p70_cost_share_livst(t,i,"labor") = 1 - f70_hist_cap_share(t,i);

elseif (m_year(t)>=2010),
p70_cost_share_livst(t,i,"capital") = f70_cap_share_reg("slope")*log10(sum(i_to_iso(i,iso),(im_gdp_pc_ppp_iso(t,iso) * fm_gdp_defl_ppp))))+f70_cap_share_reg("intercept")+p70_cost_share_calibration(i);
p70_cost_share_livst(t,i,"capital") = f70_cap_share_reg("slope")*log10(sum(i_to_iso(i,iso),(im_gdp_pc_ppp_iso(t,iso) * fm_gdp_defl_ppp(iso))))+f70_cap_share_reg("intercept")+p70_cost_share_calibration(i);
p70_cost_share_livst(t,i,"labor") = 1 - p70_cost_share_livst(t,i,"capital");
);

Expand Down

0 comments on commit 6b93227

Please sign in to comment.