Skip to content

Commit a233f46

Browse files
committed
Reverted change of utility (it's just a constant shift x L).
1 parent d164850 commit a233f46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/finmath/climate/models/dice/DICEModel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private void init(Map<String, Object> modelProperties) {
136136
final EvolutionOfCarbonConcentration evolutionOfCarbonConcentration = new EvolutionOfCarbonConcentration(timeDiscretization);
137137

138138
final ForcingFunction forcingFunction = new ForcingFunction();
139-
final double forcingExternal = 1.0; // per year
139+
final double forcingExternal = 1.0;
140140

141141
final EvolutionOfTemperature evolutionOfTemperature = new EvolutionOfTemperature(timeDiscretization);
142142

@@ -253,7 +253,7 @@ private void init(Map<String, Object> modelProperties) {
253253
*/
254254
double alpha = 1.45; // Elasticity of marginal utility of consumption (GAMS elasmu)
255255
double C = consumption;
256-
double utility = L*(Math.pow(C / (L/1000),1-alpha))/(1-alpha);
256+
double utility = L*(Math.pow(C / (L/1000),1-alpha)-1)/(1-alpha);
257257

258258
/*
259259
* Discounted utility

0 commit comments

Comments
 (0)