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
c99a0f33
Commit
c99a0f33
authored
10 years ago
by
Peter Alexander
Browse files
Options
Downloads
Patches
Plain Diff
no message
parent
0d124a4b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GAMS/IntExtOpt.gms
+2
-6
2 additions, 6 deletions
GAMS/IntExtOpt.gms
src/ac/ed/lurg/country/gams/GamsTest.java
+0
-1
0 additions, 1 deletion
src/ac/ed/lurg/country/gams/GamsTest.java
with
2 additions
and
7 deletions
GAMS/IntExtOpt.gms
+
2
−
6
View file @
c99a0f33
...
...
@@ -38,10 +38,9 @@ $gdxin
area(crop) total area for each crop - ha
feedAmount(crop) amount of feed for each crop - t
intensity(crop) intensity for each crop - unitless
netImportAmount(crop) export of crop - t
yield(crop) yield per area for each crop - t per ha
unit_energy(crop) energy per area for each crop - energy
netImportAmount(crop) export of crop - t
tradeBarrierFactor(crop)
energy total input energy - energy;
POSITIVE VARIABLE area, intensity, feedAmount;
...
...
@@ -51,7 +50,6 @@ $gdxin
YIELD_EQ(crop) yield given chosen intensity
CROP_DEMAND_CONSTRAINT(crop_less_pasture) satisfy demand for crop
MEAT_DEMAND_CONSTRAINT satisfy demand for crop
MIN_INTENSITY_CONSTRAINT(crop) intensity constraint
MAX_INTENSITY_CONSTRAINT(crop) constraint on maximum intensity which will tend to rise over time
CROPLAND_CHANGE_CONSTRAINT constraint on the rate of land use change
PASTURE_CHANGE_CONSTRAINT constraint on the rate of land use change
...
...
@@ -71,9 +69,7 @@ $gdxin
MEAT_DEMAND_CONSTRAINT .. meatEfficency*sum(feed_crop, feedDM(feed_crop) * feedAmount(feed_crop)) + feedDM('pasture_or_meat') * area('pasture_or_meat') * yield('pasture_or_meat') =G=
demand('pasture_or_meat') - netImportAmount('pasture_or_meat');
MIN_INTENSITY_CONSTRAINT(crop) .. intensity(crop) =G= 1;
MAX_INTENSITY_CONSTRAINT(crop) .. intensity(crop) =L= maxIntensity;
CROPLAND_CHANGE_CONSTRAINT .. 1 - sum(crop_less_pasture, area(crop_less_pasture))/sum(crop_less_pasture, previous_area(crop_less_pasture)) =L= maxLandUseChange;
...
...
This diff is collapsed.
Click to expand it.
src/ac/ed/lurg/country/gams/GamsTest.java
+
0
−
1
View file @
c99a0f33
...
...
@@ -133,5 +133,4 @@ public class GamsTest implements GamsInputData {
public
double
getMinFeedRate
()
{
return
0.15
;
}
}
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