|
8 | 8 | *** Land Patterns are transferred to next timestep
|
9 | 9 | pc31_grass(j,grassland) = v31_grass_area.l(j,grassland);
|
10 | 10 |
|
11 |
| - |
12 |
| -if(ord(t)<=card(t_past), |
13 |
| -* Calculation of absolute discrepancy and total discrepancy for normalization |
14 |
| - p31_abs_discrepancy(j) = f31_land(t,j,"past") - v31_grass_area.l(j,"pastr"); |
15 |
| - p31_total_discrepancy = sum(j, p31_abs_discrepancy(j)); |
16 |
| - p31_total_discrepancy$(p31_total_discrepancy = 0) = 1e-6; |
17 |
| - p31_cost_adj_index(j) = (p31_abs_discrepancy(j) / p31_total_discrepancy); |
18 |
| - pc31_scaled_expansion_cost(t,j) = s31_cost_expansion * ((1 + p31_cost_adj_index(j)) * 1000); |
19 |
| -); |
20 |
| -* Beyond 2010, carrying forward the last historical year adjusted costs |
21 |
| -p31_abs_discrepancy_log(t,j) = p31_abs_discrepancy(j); |
22 |
| -p31_total_discrepancy_log(t) = p31_total_discrepancy; |
23 |
| -pc31_scaled_expansion_cost_log(t,j) = pc31_scaled_expansion_cost(t,j); |
24 |
| - |
25 |
| - |
26 |
| -$ontext |
27 |
| -if(ord(t)<=card(t_past), |
28 |
| -* Calculation of absolute discrepancy and total discrepancy for normalization |
29 |
| - p31_abs_discrepancy(t,i) = sum(cell(i,j), f31_land(t,j,"past") - v31_grass_area.l(j,"pastr")); |
30 |
| - pc31_scaled_expansion_cost(t,i) = s31_cost_expansion - p31_abs_discrepancy(t,i) * 10; |
31 |
| -elseif(ord(t)>card(t_past)), |
32 |
| - pc31_scaled_expansion_cost(t,i) = pc31_scaled_expansion_cost(t-1,i) |
33 |
| -); |
34 |
| -pc31_scaled_expansion_cost(t,i)$(pc31_scaled_expansion_cost(t,i) < 0) = 0; |
35 |
| - |
36 |
| -* Beyond 2010, carrying forward the last historical year adjusted costs |
37 |
| -p31_abs_discrepancy_log(t,i) = p31_abs_discrepancy(t,i); |
38 |
| -pc31_scaled_expansion_cost_log(t,i) = pc31_scaled_expansion_cost(t,i); |
39 |
| -$offtext |
40 |
| - |
41 | 11 | *#################### R SECTION START (OUTPUT DEFINITIONS) #####################
|
42 | 12 | ov31_grass_area(t,j,grassland,"marginal") = v31_grass_area.m(j,grassland);
|
43 | 13 | ov31_cost_grass_expansion(t,j,grassland,"marginal") = v31_cost_grass_expansion.m(j,grassland);
|
|
0 commit comments