julia-mpsge / MPSGE.jl

MPSGE for Julia
MIT License
14 stars 2 forks source link

Need default fixed variable/numeraire good #42

Open EliLazarus opened 3 years ago

EliLazarus commented 3 years ago

We need to have a default fixed value, determined by whatever the standard is, that can be either a scalar or from an indexed variable.

EliLazarus commented 1 year ago

Adding that it seems like the standard is for the consumer to be the numeraire by default. I don't know what that means for indexed/multiple consumers at this point.

EliLazarus commented 1 year ago

From building a GAMS model with 2 consumers, it seems like it picks the first consumer as the default numeraire.

EliLazarus commented 1 year ago

From my Nested Demands work/GAMS Models, it seemed to switch at one point - when a paramater, endow, change such that labour endowment in HH was doubled, it seems like the solution switched from GOVT to HH, for that one solution, and then switched back. But from then forward the value of GOVT was fixed at that new value (and then remained at that value for the remaining solves). Confusingly, the HH value result is NOT what would be the fixed benchmard value of 160.

EliLazarus commented 1 year ago

Adding also that we should print out what the numeraire variable is with the solution print.

EliLazarus commented 1 year ago

Adding that the value of the numeraire variable is calculated, it isn't the benchmark value for most counterfactuals, and it's not the same value that JuMP gives without a fixed variable.

jonmbecker commented 10 months ago

I think it chooses the maximum income balance as the numeraire. Unsure of the logic when you manually specify in MPSGE. For example, if I chose to fix a commodity price to 1 instead, MPSGE will drop the fixed numeraire on income balance.

mitchphillipson commented 4 weeks ago

This is done with the new updates.

EliLazarus commented 4 weeks ago

Yes, excellent work. I have an outstanding issue on this, re that calculation with non-1 demand elastiticy values. I'd like to resolve that before we close this.