Skip to content

Commit

Permalink
Added comment on utility.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfries committed Oct 20, 2023
1 parent 2807ebe commit 5312fb2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ private void init(Map<String, Object> modelProperties) {
*/
double alpha = 1.45; // Elasticity of marginal utility of consumption (GAMS elasmu)
double C = consumption;
// U = L * [ ( (1000*C/L)^(1-alpha) - 1)/(1-alpha) - 1 ]
double utility = population[timeIndex]*( (Math.pow(1000*C/(population[timeIndex]),1-alpha)-1) /(1-alpha)-1 );

/*
Expand Down

0 comments on commit 5312fb2

Please sign in to comment.