<?xml version="1.0" encoding="UTF-8"?>
<rtcToolsConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews ../../xsd/rtcToolsConfig.xsd" xmlns="http://www.wldelft.nl/fews">
	<components>
		<component>
			<reservoir id="reservoir">
				<mode>BackwardEuler</mode>
				<theta>1.0</theta>
				<storageCharacteristics>
					<storageTable>
						<elevationRecord elevation="386" value="0"/>
						<elevationRecord elevation="390" value="30000"/>
						<elevationRecord elevation="395" value="410000"/>
						<elevationRecord elevation="400" value="1760000"/>
						<elevationRecord elevation="405" value="4685200"/>
						<elevationRecord elevation="410" value="9110000"/>
						<elevationRecord elevation="415" value="15475000"/>
						<elevationRecord elevation="420" value="23730000"/>
						<elevationRecord elevation="425" value="33780000"/>
						<elevationRecord elevation="430" value="45620000"/>
						<elevationRecord elevation="436.66" value="64635600"/>
						<elevationRecord elevation="439.6" value="74650000"/>
						<elevationRecord elevation="440.94" value="79723900"/>
						<elevationRecord elevation="442.14" value="84350100"/>
						<elevationRecord elevation="442.6" value="86123600"/>
					</storageTable>
				</storageCharacteristics>
				<controlledOutlet id="hydropower">
					<capacityCharacteristics>
						<capacityTable>
							<elevationRecord elevation="400" value="52.0"/>
							<elevationRecord elevation="500" value="52.0"/>
						</capacityTable>
					</capacityCharacteristics>
					<input>
						<relativeRelease>Rule_qT.RTC</relativeRelease>
					</input>
					<output>
						<release>Reservoir_QT.RTC</release>
					</output>
				</controlledOutlet>
				<uncontrolledOutlet id="spillway">
					<capacityCharacteristics>
						<capacityTable>
							<elevationRecord elevation="388.35" value="0"/>
							<elevationRecord elevation="439.6" value="0"/>
							<elevationRecord elevation="439.7" value="2.1"/>
							<elevationRecord elevation="439.8" value="6.1"/>
							<elevationRecord elevation="439.9" value="11.5"/>
							<elevationRecord elevation="440" value="18.1"/>
							<elevationRecord elevation="440.25" value="38.9"/>
							<elevationRecord elevation="440.5" value="65.7"/>
							<elevationRecord elevation="440.75" value="97.9"/>
							<elevationRecord elevation="440.94" value="135.3"/>
							<elevationRecord elevation="441" value="177.7"/>
							<elevationRecord elevation="441.25" value="225"/>
							<elevationRecord elevation="441.5" value="277"/>
							<elevationRecord elevation="441.75" value="333.7"/>
							<elevationRecord elevation="442.5" value="442"/>
							<elevationRecord elevation="442.75" value="451"/>
						</capacityTable>
					</capacityCharacteristics>
					<output>
						<release>Reservoir_QS.RTC</release>
					</output>
				</uncontrolledOutlet>
				<input>
					<inflow>Reservoir_QI</inflow>
				</input>
				<output>
					<inflow>Reservoir_QI.RTC</inflow>
					<release>Reservoir_QO.RTC</release>
					<storage>Reservoir_S.RTC</storage>
					<level>Reservoir_FB.RTC</level>
				</output>
			</reservoir>
		</component>
		<component>
			<unitHydrograph id="unitHydrograph">
				<weights>
					<custom>
						<weight>0.05</weight>
						<weight>0.10</weight>
						<weight>0.20</weight>
						<weight>0.30</weight>
						<weight>0.20</weight>
						<weight>0.10</weight>
						<weight>0.05</weight>
					</custom>
				</weights>
				<input>
					<x>Reservoir_QO.RTC</x>
				</input>
				<output>
					<xDelayVector>Reservoir_QO.RTC_Delay</xDelayVector>
					<y>Gauge_Q1.RTC</y>
				</output>
			</unitHydrograph>
		</component>
		<component>
			<unitDelay id="unitDelay">
				<input>
					<x>Lateral_Q</x>
				</input>
				<output>
					<y>Gauge_Q2.RTC</y>
				</output>
			</unitDelay>
		</component>
		<component>
			<expression id="sum">
				<x1Series ref="IMPLICIT">Gauge_Q1.RTC</x1Series>
				<mathematicalOperator>+</mathematicalOperator>
				<x2Series ref="IMPLICIT">Gauge_Q2.RTC</x2Series>
				<y>Gauge_Q.RTC</y>
			</expression>
		</component>
	</components>
	<rules>
		<rule>
			<guideband id="guideBand1">
				<xMin>
					<data value="436.40"/>
				</xMin>
				<xMax>
					<data value="436.60"/>
				</xMax>
				<yMin>0.0</yMin>
				<yMax>1.0</yMax>
				<input>
					<x>Reservoir_FB.RTC</x>
				</input>
				<output>
					<y>Rule_qT.RTC</y>
				</output>
			</guideband>
		</rule>
		<rule>
			<guideband id="guideBand2">
				<xMin>
					<data value="150.0"/>
				</xMin>
				<xMax>
					<data value="180.0"/>
				</xMax>
				<yMin>1.0</yMin>
				<yMax>0.0</yMax>
				<input>
					<x>Lateral_Q</x>
				</input>
				<output>
					<y>Rule_qT.RTC</y>
				</output>
			</guideband>
		</rule>
	</rules>
	<triggers>
		<trigger>
			<standard id="trigger">
				<condition>
					<x1Series>Lateral_Q</x1Series>
					<relationalOperator>LessEqual</relationalOperator>
					<x2Value>150.0</x2Value>
				</condition>
				<true>
					<trigger>
						<ruleReference>guideBand1</ruleReference>
					</trigger>
				</true>
				<false>
					<trigger>
						<ruleReference>guideBand2</ruleReference>
					</trigger>
				</false>
				<output>
					<status>Trigger_Status</status>
				</output>
			</standard>
		</trigger>
	</triggers>
</rtcToolsConfig>
