Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identify parameters and their range for a parameter sweep #27

Open
lyashevska opened this issue Nov 22, 2023 · 9 comments
Open

Identify parameters and their range for a parameter sweep #27

lyashevska opened this issue Nov 22, 2023 · 9 comments

Comments

@lyashevska
Copy link
Contributor

lyashevska commented Nov 22, 2023

This relates to #29

@lyashevska
Copy link
Contributor Author

lyashevska commented Nov 22, 2023

Parameters to test as suggested in 'Parameters to test IRABM3.xlsx'

Input Parameters Value Increment
Simulation years 100
RiverDischarge (Qin_Average) 650-1000 10, 20
GateCapacity (QGateMaxFixed) 30-200 10
QHeadGateMaxFixed
GC adjustment variation 3, 4, 5
Continuously poor harvest years 5
Continuously good harvest years 5
Harvest memory 10,20
Available water memory 10,20
Qin_randomizer 0
QGateLimit? true
QHeadGateLimit? true
TotalIrrigationDemand 410
Pre-IrrigationDemand 82
BarleyIrrigationDemand 82
BarleyIrrigationMemory 36
MaximunStorageOfStoragePatch 200
StartBarley 44
BarleyYieldY6 880
BarleyYieldY5 440
BarleyYieldY4 220
BarleyYieldY3 110
BarleyYieldY2 55
BarleyYieldY1 27
BarleyYieldY0 0
CountDownForWaterAvailability 365
ComparisonCountDownForCanalExpansion 365
ComparisonCountDownForFarmersExpansion 365
CountDownForHarvestMemory 365

@fdiblen
Copy link
Contributor

fdiblen commented Mar 19, 2024

@mwertsen @Dengxiao-Lang Can you please tell us where these variables can be found in the model?

For example, as we understand for the GateCapacity variable of farmer 1 and canal 10, one needs to change the values from 30 to desired value at the lines below. Is that correct?

ifelse QGateMaxFixed > 30

ifelse QGateMaxFixed - ([ContinuousPoorYearNumberPrimary] of patch pxcor (pycor + 1) + 1) * 10 >= 30

set QGateMax 30

@fdiblen
Copy link
Contributor

fdiblen commented Mar 19, 2024

@lyashevska just mentioned you run some experiments in the past which are also described in
the table on page 5 of Summary overview of IRABM3.docx. We would like to know what changes you made for each of these experiments.

@Dengxiao-Lang
Copy link

Dengxiao-Lang commented Mar 20, 2024 via email

@fdiblen
Copy link
Contributor

fdiblen commented Mar 20, 2024

Hi @Dengxiao-Lang,

Thank you, it helps to understand how gate capacity is calculated.

Can you please also help us with identifying where these variables are used in the code? We want to know what hard coded numbers need to change in order to run experiments with different values of:

  1. RiverDischarge
  2. GateCapacity
  3. GC adjustment variation
  4. Harvest memory
  5. Available water memory

@Dengxiao-Lang
Copy link

Dengxiao-Lang commented Mar 20, 2024 via email

@lyashevska
Copy link
Contributor Author

Suppose we run the following:
./netlogo-headless.sh --model "model/main.nlogo" --experiment "RD40to200_GC30_CSPHY3__50years" --table output.csv

where:
--experiment "RD40to200_GC30_CSPHY3__50years" corresponds to

<experiment name="RD40to200_GC30_CSPHY3__50years" repetitions="1" runMetricsEveryStep="true">

If we further look into say Qin_Average (RiverDischarge) we can see it is controlled here:

<steppedValueSet variable="Qin_average" first="40" step="10" last="200"/>

And QGateMaxFixed (GateCapacity) here:

<enumeratedValueSet variable="QGateMaxFixed">

The <steppedValueSet> and <enumeratedValueSet> tags define the parameters. The <steppedValueSet> tag is used for parameters that should be varied in steps between a start and end value. The <enumeratedValueSet> tag is used for parameters that should take on a specific set of values. For example, the "Qin_average" parameter is varied from 40 to 200 in steps of 10, and the "QGateMaxFixed" parameter is set to 30.

@lyashevska
Copy link
Contributor Author

This relates to #33

@Dengxiao-Lang
Copy link

Hi @lyashevska @fdiblen
I am sorry for being late. Could you please find the Parameter Sweep in this Excel:
Parameter Sweep.xlsx

If something is lacking please do not hesitate to contact me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants