PageRenderTime 10ms CodeModel.GetById 7ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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