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
084965d3
Commit
084965d3
authored
10 months ago
by
Bart Arendarczyk
Browse files
Options
Downloads
Patches
Plain Diff
Allow excess imports to avoid solution failure.
parent
5f01b5b4
No related branches found
No related tags found
3 merge requests
!4
Merging Barts changes into inequality branch
,
!3
Merging changes from master
,
!2
Bringing Bart's recent changes into the inequality branch
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GAMS/IntExtOpt.gms
+5
-2
5 additions, 2 deletions
GAMS/IntExtOpt.gms
with
5 additions
and
2 deletions
GAMS/IntExtOpt.gms
+
5
−
2
View file @
084965d3
...
@@ -157,6 +157,7 @@ $gdxin
...
@@ -157,6 +157,7 @@ $gdxin
netImportAmount(import_types) net imports - Mt
netImportAmount(import_types) net imports - Mt
netImportIncrease(import_types)
netImportIncrease(import_types)
netImportDecrease(import_types)
netImportDecrease(import_types)
excessImports(import_types)
landCoverArea(land_cover, protection, location) land cover area in Mha
landCoverArea(land_cover, protection, location) land cover area in Mha
landCoverChange(land_cover_before, land_cover_after, protection, location) land cover change in Mha
landCoverChange(land_cover_before, land_cover_after, protection, location) land cover change in Mha
...
@@ -175,7 +176,7 @@ $gdxin
...
@@ -175,7 +176,7 @@ $gdxin
;
;
POSITIVE VARIABLE cropArea, fertI, irrigI, otherIntensity, yield, feedAmount, importAmount, exportAmount, woodPriceFactor, cropProduction,
POSITIVE VARIABLE cropArea, fertI, irrigI, otherIntensity, yield, feedAmount, importAmount, exportAmount, woodPriceFactor, cropProduction,
excessImports,
landCoverArea, landCoverChange, woodYieldRota, rotationIntensity, woodSupply, totalProduction, netImportIncrease, netImportDecrease;
landCoverArea, landCoverChange, woodYieldRota, rotationIntensity, woodSupply, totalProduction, netImportIncrease, netImportDecrease;
...
@@ -347,7 +348,7 @@ $gdxin
...
@@ -347,7 +348,7 @@ $gdxin
NET_IMPORT_CALC(import_types) .. netImportAmount(import_types) =E= importAmount(import_types) - exportAmount(import_types);
NET_IMPORT_CALC(import_types) .. netImportAmount(import_types) =E= importAmount(import_types) - exportAmount(import_types);
MAX_NET_IMPORT_CONSTRAINT(import_types) .. netImportAmount(import_types) =L= maxNetImport(import_types);
MAX_NET_IMPORT_CONSTRAINT(import_types) .. netImportAmount(import_types) =L= maxNetImport(import_types)
+ excessImports(import_types)
;
MIN_NET_IMPORT_CONSTRAINT(import_types) .. netImportAmount(import_types) =G= minNetImport(import_types);
MIN_NET_IMPORT_CONSTRAINT(import_types) .. netImportAmount(import_types) =G= minNetImport(import_types);
...
@@ -395,6 +396,8 @@ $gdxin
...
@@ -395,6 +396,8 @@ $gdxin
- sum(animal, feedDiversityCost(animal) * sum(feed_crop, sqr(feedAmount(animal, feed_crop) * cropDM(feed_crop))) / (sum(feed_crop, feedAmount(animal, feed_crop) * cropDM(feed_crop)) + 0.01))
- sum(animal, feedDiversityCost(animal) * sum(feed_crop, sqr(feedAmount(animal, feed_crop) * cropDM(feed_crop))) / (sum(feed_crop, feedAmount(animal, feed_crop) * cropDM(feed_crop)) + 0.01))
* Net import change cost
* Net import change cost
- sum(import_types, exp(tradeAdjustmentCostRate(import_types) * (netImportIncrease(import_types) + netImportDecrease(import_types))) - 1)
- sum(import_types, exp(tradeAdjustmentCostRate(import_types) * (netImportIncrease(import_types) + netImportDecrease(import_types))) - 1)
* Allow import constraint to be relaxed at a high cost if needed to avoid solution failture
- sum(import_types, 1000 * excessImports(import_types));
;
;
MODEL LAND_USE / ALL / ;
MODEL LAND_USE / ALL / ;
...
...
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