SetRate <resource name>, <expression>, <unit #>
SetRate Operator, 25, 3
Allows you to define the regular rate of cost for resources contained in a model. If you have already defined the regular rate in the Cost module, this statement will override that rate. You can use SetRate to set different rates for each unit of a resource.
Initialization logic.
<resource name>
The name of the resource whose rate you wish to set.
<expression>
The rate assigned to the resource.
<unit #>
The unit number of the resource. Where multiple instances of a resource exist, you must specify which instance of the resource to use (e.g., Tech1, Tech2, Tech3, etc.). The keyword All may be used to indicate all instances of a resource.
Please Note: SetRate uses the time units defined for the model. (By default, SetRate uses hours.)
The logic below displays how you can uniquely assign the regular rate for each unit of a resource, Operator. Operator has three units, meaning that each unit can perform the same task. However, each of the three Operators has a different hourly rate. We set these rates in the Initialization logic using the following:
See Also
GetCost, GetResRate(), IncEntCost, IncLocCost, and IncResCost.
|
© 2019 ProModel Corporation • 705 E Timpanogos Parkway • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com |