Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PLUM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Land Use Lab
PLUM
Commits
34738fd2
Commit
34738fd2
authored
4 years ago
by
Bart Arendarczyk
Browse files
Options
Downloads
Patches
Plain Diff
Added infrastructure expansion cost.
parent
419bb9cd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GAMS/IntExtOpt.gms
+9
-6
9 additions, 6 deletions
GAMS/IntExtOpt.gms
src/ac/ed/lurg/country/gams/GamsLocationOptimiser.java
+5
-0
5 additions, 0 deletions
src/ac/ed/lurg/country/gams/GamsLocationOptimiser.java
with
14 additions
and
6 deletions
GAMS/IntExtOpt.gms
+
9
−
6
View file @
34738fd2
...
...
@@ -69,6 +69,7 @@
PARAMETER timberForestYield(location);
PARAMETER conversionCost(land_cover, land_cover) cost of converting from one land cover to another;
PARAMETER infrastructureCost(location);
*$gdxin "C:\Users\Bart\Documents\PhD\GAMS testing area\_gams_java_gdb1.gdx"
$gdxin %gdxincname%
...
...
@@ -78,7 +79,7 @@ $load yieldNone, yieldFertOnly, yieldIrrigOnly, yieldBoth, yieldShock
$load fertParam, irrigParam, otherIParam, exportPrices, importPrices, maxNetImport, minNetImport, unhandledCropRate, setAsideRate, maxLandExpansionRate, subsidyRate
$load meatEfficency, otherICost, irrigCost, irrigMaxRate, irrigConstraint, fertiliserUnitCost, domesticPriceMarkup, minDemandPerCereal, minDemandPerOilcrop, seedAndWasteRate
$load previousLandCoverArea, carbonFluxRate, woodYield, carbonPrice, woodPrice
$load minimumLandCoverArea, conversionCost, timberForestYield, timberYield
$load minimumLandCoverArea, conversionCost, timberForestYield, timberYield
, infrastructureCost
$gdxin
SCALAR delta "use to smooth power function see 7.5 www.gams.com/dd/docs/solversconopt.pdf" / 0.00000000001 /;
...
...
@@ -117,8 +118,8 @@ $gdxin
baseCost('pasture') = 0.04;
otherIntCost('pasture') = 0.8 + otherICost;
SCALAR forestExpansionMaxRate /
1
/;
SCALAR restrictedDeforestationCost
/ 100000
00 /;
SCALAR forestExpansionMaxRate /
0.05
/;
SCALAR restrictedDeforestationCost
might fail to optimise if set too high / 1
00 /;
unrestrictedArea(land_cover, location) = previousLandCoverArea(land_cover, location) - minimumLandCoverArea(land_cover, location);
woodYield('carbonForest', 'naturalNew', location) = woodYield('carbonForest', 'timberForest', location);
woodYield('natural', 'naturalNew', location) = woodYield('natural', 'pasture', location);
...
...
@@ -188,7 +189,8 @@ $gdxin
LAND_COVER_CHANGE_CONSTRAINT(land_cover, location) conservation of land area
RESTRICTED_LAND_COVER_CHANGE_CALC(land_cover, location)
RESTRICTED_LAND_COVER_CHANGE_CONSTRAINT(land_cover, location)
FOREST_EXPANSION_CONSTRAINT
FOREST_EXPANSION_CONSTRAINT(forest, location)
FOREST_CONTRACTION_CONSTRAINT(forest, location)
PREMATURE_DEFORESTATION_COST_CALC(location)
TOTAL_LAND_COVER_CALC(land_cover, location)
TOTAL_LAND_COVER_CHANGE_CALC(land_cover, land_cover_after, location)
...
...
@@ -273,7 +275,8 @@ $gdxin
NATURAL_CONVERSION_CONSTRAINT(exc_natural, location) .. totalLandCoverChange(exc_natural, 'natural', location) =E= 0;
FOREST_EXPANSION_CONSTRAINT .. sum((non_forest, forest, location), landCoverChange(non_forest, forest, location)) =L= sum((non_forest, location), previousLandCoverArea(non_forest, location)) * forestExpansionMaxRate;
FOREST_EXPANSION_CONSTRAINT(forest, location) .. totalLandCoverArea(forest, location) =L= previousLandCoverArea(forest, location) * (1 + forestExpansionMaxRate);
FOREST_CONTRACTION_CONSTRAINT(forest, location) .. totalLandCoverArea(forest, location) =G= previousLandCoverArea(forest, location) * (1 - forestExpansionMaxRate);
PREMATURE_DEFORESTATION_COST_CALC(location) .. prematureDeforestationCost(location) =E= sum((forest, land_cover)$[not sameAs(forest, land_cover)], restrictedLandCoverChange(forest, land_cover, location)) * restrictedDeforestationCost;
...
...
@@ -289,7 +292,7 @@ $gdxin
CARBON_FLUX_CALC(location) .. carbonFlux(location) =E= sum((land_cover_before, land_cover_after), totalLandCoverChange(land_cover_before, land_cover_after, location) * carbonFluxRate(land_cover_before, land_cover_after, location));
* Subtracting cost of not fully grown timberForest reserved under minimumLandCoverArea
CONVERSION_COST(location) .. totalConversionCost(location) =E= sum((land_cover_before, land_cover_after), totalLandCoverChange(land_cover_before, land_cover_after, location) * (conversionCost(land_cover_before, land_cover_after) +
((previousLandCoverArea('natural', location) / suitableLandArea(location)) * 0.5 + 0.1
)));
CONVERSION_COST(location) .. totalConversionCost(location) =E= sum((land_cover_before, land_cover_after), totalLandCoverChange(land_cover_before, land_cover_after, location) * (conversionCost(land_cover_before, land_cover_after) +
infrastructureCost(location
)));
COST_EQ .. total_cost =E=
(
...
...
This diff is collapsed.
Click to expand it.
src/ac/ed/lurg/country/gams/GamsLocationOptimiser.java
+
5
−
0
View file @
34738fd2
...
...
@@ -116,6 +116,7 @@ public class GamsLocationOptimiser {
GAMSParameter
seedAndWasteRateP
=
inDB
.
addParameter
(
"seedAndWasteRate"
,
1
);
GAMSParameter
prevLandCoverP
=
inDB
.
addParameter
(
"previousLandCoverArea"
,
2
);
GAMSParameter
infrastructureCostP
=
inDB
.
addParameter
(
"infrastructureCost"
,
1
);
double
totalAgriLand
=
0
;
double
totalSuitable
=
0
;
...
...
@@ -179,6 +180,10 @@ public class GamsLocationOptimiser {
v
.
add
(
locString
);
setGamsParamValueTruncate
(
prevLandCoverP
.
addRecord
(
v
),
landUseItem
.
getUnprotectedLandCoverArea
(
lc
),
5
);
}
// Infrastructure cost
double
infrastructureCost
=
landUseItem
.
getLandCoverFract
(
LandCoverType
.
NATURAL
)
*
0.09
+
0.01
;
setGamsParamValue
(
infrastructureCostP
.
addRecord
(
locString
),
infrastructureCost
,
5
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment