...
In the example below 'X1' is a reference to a variable and 'a' and 'b' are references to a coefficient.
Code Block | ||||
---|---|---|---|---|
| ||||
<variable>
<variableId>X1</variableId>
<timeSeriesSet>
<moduleInstanceId>UserSimpleTest2</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>Q.m</parameterId>
<locationId>H-2001</locationId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="day"/>
<relativeViewPeriod unit="day" start="0" end="364"/>
<readWriteMode>editing visible to all future task runs</readWriteMode>
</timeSeriesSet>
</variable>
<variable>
<variableId>Y1</variableId>
<timeSeriesSet>
<moduleInstanceId>UserSimpleTest2</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>Q.tra</parameterId>
<locationId>H-2001</locationId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="day"/>
<relativeViewPeriod unit="day" start="0" end="364"/>
<readWriteMode>add originals</readWriteMode>
</timeSeriesSet>
</variable>
<transformation id="user simple test 2">
<user>
<simple>
<expression>(a + b)*X1 - 3</expression>
<coefficientSet>
<coefficient id="a" value="1.34"/>
<coefficient id="b" value="2.5"/>
</coefficientSet>
<outputVariable>
<variableId>Y1</variableId>
</outputVariable>
</simple>
</user>
</transformation>
|
The example below uses an if statement. Below 'X' is a reference to a variable and 'a' is a reference to a coefficient.
...