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
6099fdbb
Commit
6099fdbb
authored
6 years ago
by
Peter Alexander
Browse files
Options
Downloads
Plain Diff
Merge
parents
00adc4f1
b904db23
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ac/ed/lurg/country/CountryAgent.java
+1
-1
1 addition, 1 deletion
src/ac/ed/lurg/country/CountryAgent.java
with
1 addition
and
1 deletion
src/ac/ed/lurg/country/CountryAgent.java
+
1
−
1
View file @
6099fdbb
...
...
@@ -253,7 +253,7 @@ public class CountryAgent {
private
Map
<
CropType
,
Double
>
getMinCerealFraction
(
Timestep
timestep
)
{
Map
<
CropType
,
Double
>
minCerealFraction
=
new
HashMap
<
CropType
,
Double
>();
int
yearsOfChange
=
(
timestep
.
getTimestep
()
-
ModelConfig
.
TECHNOLOGY_CHANGE_START_STEP
)
*
ModelConfig
.
TIMESTEP_SIZE
;
int
yearsOfChange
=
ModelConfig
.
IS_CALIBRATION_RUN
?
0
:
(
timestep
.
getTimestep
()
-
ModelConfig
.
TECHNOLOGY_CHANGE_START_STEP
)
*
ModelConfig
.
TIMESTEP_SIZE
;
for
(
Map
.
Entry
<
CropType
,
Double
>
entry
:
demandManager
.
getBaseCerealFraction
(
country
).
entrySet
())
{
minCerealFraction
.
put
(
entry
.
getKey
(),
entry
.
getValue
()
*
Math
.
max
(
ModelConfig
.
TOTAL_MAX_CEREAL_CHANGE
,
(
1
-
ModelConfig
.
ANNUAL_MAX_CEREAL_CHANGE
*
yearsOfChange
)));
...
...
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