/farmR/inst/xml/defra.VAR.NCdp.lins.sw.sosr.profit

https://code.google.com/p/javawfm/ · Unknown · 128 lines · 113 code · 15 blank · 0 comment · 0 complexity · 78a8471c683db8e850ff2a9e0b97d857 MD5 · raw file

  1. <?xml version="1.0"?>
  2. <!-- Input file for Java Farm Model.
  3. This is the master document.
  4. Add crops by including their xml files
  5. -->
  6. <!-- Lets this document know where your crop files are.
  7. This setup assumes everything is in the same directory as
  8. this file -->
  9. <!DOCTYPE farm [
  10. <!ENTITY driedpeas SYSTEM "defradatabase/driedpeas.xml">
  11. <!ENTITY setaside SYSTEM "defradatabase/setaside.xml">
  12. <!ENTITY linseed SYSTEM "defradatabase/linseed.xml">
  13. <!ENTITY linseedsa SYSTEM "defradatabase/linseedsa.xml">
  14. <!ENTITY springbarley SYSTEM "defradatabase/springbarley.xml">
  15. <!ENTITY winterbarley SYSTEM "defradatabase/winterbarley.xml">
  16. <!ENTITY winterbarleysa SYSTEM "defradatabase/winterbarleysa.xml">
  17. <!ENTITY potatoes SYSTEM "defradatabase/potatoes.xml">
  18. <!ENTITY sosr SYSTEM "defradatabase/sosr.xml">
  19. <!ENTITY wosr SYSTEM "defradatabase/wosr.xml">
  20. <!ENTITY winterwheat SYSTEM "defradatabase/winterwheat.xml">
  21. <!ENTITY springwheat SYSTEM "defradatabase/springwheat.xml">
  22. <!ENTITY sosrsa SYSTEM "defradatabase/sosrsa.xml">
  23. <!ENTITY wosrsa SYSTEM "defradatabase/wosrsa.xml">
  24. <!ENTITY winterwheatsa SYSTEM "defradatabase/winterwheatsa.xml">
  25. <!ENTITY springwheatsa SYSTEM "defradatabase/springwheatsa.xml">
  26. <!ENTITY sugarbeet SYSTEM "defradatabase/sugarbeet.xml">
  27. <!ENTITY winterbeans SYSTEM "defradatabase/winterbeans.xml">
  28. <!ENTITY springbeans SYSTEM "defradatabase/springbeans.xml">
  29. ]>
  30. <!-- Create a Farm and set some overall parameters. fuelprice affects the cost of operations especially those that use fuel guzzling machinery. Interest rate will affect the overall cost of machinery. Solver determines the type of back-end solver that is used. Allowable options are glpk or cbc .. use cbc -->
  31. <farm nperiods="26" fuelprice="0.47" interestrate="0.05" solver="cbc" >
  32. <!-- Location specific information. soil is the soil type according to a numerical description used by the SWFM. rain is the rainfall in mm -->
  33. <location soil="2.5" rain="500"/><!-- Need to change to Heavy Clay -->
  34. <landuse area="250">
  35. <cropping >
  36. <!-- Here is where you include all the crops you wish to model. Comment out or delete the crops you don't want -->
  37. <!-- &driedpeas;-->
  38. <!-- &linseed;-->
  39. <!-- &linseedsa;-->
  40. &springbarley;
  41. &winterbarley;
  42. <!-- &winterbarleysa;-->
  43. &winterbeans;
  44. &springbeans;
  45. &winterwheat;
  46. <!-- &winterwheatsa;-->
  47. <!-- &springwheat;
  48. &springwheatsa;-->
  49. &sugarbeet;
  50. &setaside;
  51. &potatoes;
  52. <!-- &sosr;
  53. &sosrsa;-->
  54. &wosr;
  55. <!-- &wosrsa;-->
  56. <!-- Setup the disease classes. These are used to determine allowable rotations between crops. break means that this crop requires a break of a certain number of years in between cultivations. assoc is the associated disease type -->
  57. <disease id="none" assoc="none" break="1"/>
  58. <disease id="brassica" break="2"/>
  59. <disease id="wheat" assoc="barley"/>
  60. <disease id="barley" assoc="wheat" />
  61. <disease id="potatoes" break="3"/>
  62. <disease id="oats" />
  63. <disease id="sugarbeet" break="2"/>
  64. <disease id="peasbeans" break="3"/>
  65. <disease id="linseed" break="2"/>
  66. <!-- This is an example of a limit construct.
  67. In this case the area of setaside is fixed to be 20ha. -->
  68. <!--<limit id="area" min="20" max="100.0" type="lpx_lo" >
  69. <csv data="croptype">setaside</csv>
  70. </limit>-->
  71. </cropping>
  72. <!-- We could do costs for timing here but it would not be likely to have an effect on
  73. labour req because it occurs over a long time period and not at a busy time of year -->
  74. <!-- Historical is in miles, costs are in pounds per mile -->
  75. <!-- <hedgerows historical="6.6" creationCost="100" destructionCost="50" maintenanceCost="80" discountRate="0.05"/>-->
  76. </landuse>
  77. <workers>
  78. <!-- Describe the available labour and machinery for this farm -->
  79. <!-- Standard Labour. The variable glpkV can be set to lpx_cv (continuous variable)
  80. which means fractional numbers of workers are allowed.
  81. If instead it is set to lpx_iv (integer variable) only
  82. integer numbers of workers will be allowed -->
  83. <labour wktype="labour" wkstype="labour" cost="19660.0" glpkV="lpx_cv" lowB="0" upB="2000" glpkB="lpx_db"/>
  84. <!-- Special type of labour representing the farmer. This is usually fixed to 1 and set to be free or perhaps some price representing opportunity costs that are incurred by not taking up another job (ie doing contract farming) -->
  85. <labour wktype="labour" wkstype="farmer" cost="0.0" glpkV="lpx_iv" lowB="0" upB="1" glpkB="lpx_db"/>
  86. <!-- Standard Machinery Costs -->
  87. <!--
  88. <machine wktype="tractor" cost="42965" replace="5" depreciationRate="22.0" repairCosts="12.05"/>
  89. <machine wktype="combine" cost="109376" replace="7" depreciationRate="18.0" repairCosts="5.8"/>
  90. <machine wktype="sprayer" cost="15500" replace="7" depreciationRate="18.0" repairCosts="6.8"/>
  91. <machine wktype="baler" cost="18000" replace="7" depreciationRate="11.0" repairCosts="5.5"/>
  92. <machine wktype="potato-harvester" cost="60000" replace="7" depreciationRate="18.0" repairCosts="6.0" />
  93. <machine wktype="sugarbeet-harvester" cost="60000" replace="7" depreciationRate="18.0" repairCosts="5.0"/>
  94. <machine wktype="powerharrow" cost="8000" replace ="4" depreciationRate="14.0" repairCosts="5.0" />
  95. -->
  96. <machine wktype="tractor" cost="42965" replace="5" glpkV="lpx_cv" depreciationRate="22.0" repairCosts="12.05"/>
  97. <machine wktype="combine" cost="109376" replace="7" glpkV="lpx_cv" depreciationRate="18.0" repairCosts="5.8"/>
  98. <machine wktype="sprayer" cost="15500" replace="7" glpkV="lpx_cv" depreciationRate="18.0" repairCosts="6.8"/>
  99. <machine wktype="baler" cost="18000" replace="7" glpkV="lpx_cv" depreciationRate="11.0" repairCosts="5.5"/>
  100. <machine wktype="potato-harvester" cost="60000" replace="7" glpkV="lpx_cv" depreciationRate="18.0" repairCosts="6.0" />
  101. <machine wktype="sugarbeet-harvester" cost="60000" replace="7" glpkV="lpx_cv" depreciationRate="18.0" repairCosts="5.0"/>
  102. <machine wktype="powerharrow" cost="8000" replace ="4" glpkV="lpx_cv" depreciationRate="14.0" repairCosts="5.0" />
  103. </workers>
  104. <!-- If desired we can add specify objectives other than the base objective ( profit ) here -->
  105. <varrisk alpha="0.25" offset="170"/>
  106. <!--<motadrisk />-->
  107. <!--<stubbles endPeriod="3" subsidy="0" />
  108. <hedgerows maxlen="8.0"
  109. historical="4.0" creationCost="100" destructionCost="80"
  110. maintenanceCost="120" discountRate="0.05"/>-->
  111. <!-- Threshold percentage of farm for a crop to count -->
  112. <cropcomplexity threshold="0.01"/> <!-- Using FBS data we found that this should indeed be quite small -->
  113. </farm>