After describing a model, a user can specify different measures of interest using rewards. Rewards are values that can be associated with system states (rate rewards) or system transitions (impulse rewards). Rewards are generic enough to allow the definition of a wide range of measures.
A reward (rate or impulse) can be defined for a particular object using the Rewards object attribute. This way, rewards are specified from the state variables of the associated object. In order to use variables from different objects, we should use the global reward instruct (see the object Global_Rewards.sym) global reward object. The syntax used to define a global reward is the same as that used for a reward. The variables used to evaluate the condition can be state variables or rewards (impulse or rate) defined for the objects of model.