Laserfiche WebLink
<br />Operation Policies in RSS <br /> <br />:,:.:-~), <br />." ': <br /> <br />reservoir named ResA is to be detennined, then the variable would be the name <br />of the outflow slot of that reservoir, This name is "outflow". <br /> <br />TABLE 1, Common variables between Policy Statements Base <br />and the Simulator <br /> <br />outflow <br />diversion <br />endin9-storage <br />inflow ratio <br /> <br />User defined <br />variables <br /> <br />Note that other variables can also be defined by the author of policy statements, <br />This would be necessary, for example, when one policy statement defines how <br />the value of a variable used in another policy statement is to be determined. For <br />example, rather than writing one large aU-encompassing expression in a single <br />policy statement, a number of intennediate expressions could be wrillen in sepa- <br />rate policy statements before a particular data slot variable value is defined, <br /> <br />If specific values of an object's variable are needed in the condition or definition <br />sections of the policy statement's body, these values are obtained using the name <br />of the applicable slot preceeded by the object name and a period. Thus, <br />ResAOutflow would be the current value of the release or outflow from a reservoir <br />object named ResA. <br /> <br />Example <br /> <br />Assume for example that the release from a downstream reservoir object named <br />'Res Down" was to be 30% of the total storage volume in both the downstream <br />reservoir, 'Res Down", and of an upstream reservoir named "ResUp". Further, <br />assume the release is to be made from the downstream reservoir if at all possible, <br />Releases from the upstream reservoir, which flow into the downstream reservoir <br />~re to be made only if the total required release cannot be made from the down- <br />stream reservoir, <br /> <br />In this example cine could write a single policy for defining the release or outflow <br />from the downstream reservoir, ' <br /> <br />POLICY D_outflow TO_DETERMINE Outflow <br />BEGIN <br />Outflow <br /> <br />FOR ResDown <br /> <br />0_3 * (ResDown.Beginning_storage <br />+ ResUp.Beginning_storage ) <br /> <br />END <br /> <br />This single rule is suflicient in RSS to carry out the described policy, If the volume <br />of water in the downstream reservoir is not sufficient to make the required release, <br />an increased inflow will be requested, This increase in required inflow, in turn, will <br />force an equal increase in the release from the upstream reservoir. <br /> <br />Alternatively, one could write two policy statements to do the same thing. One <br />policy stalemenl could define a variable named, say, "sum_storage". <br /> <br />22 <br /> <br />Operation Policies in RSS <br />