Units Synonyms in Vensim are different names that refer to the same unit of measurement. When typing in units, you might find yourself making a unit of measurement singular in one place and plural in another. The Units Check feature will consider them different units unless told that they are synonyms.
Some synonyms are already defined; Month and Months, Year and Years, etc.
Ø | Select Model>Units Check from the menu (or press Ctrl + U). |
You should get 3 units errors. These are all due to the presence of different names for the things that get produced and sold — Widgets and Gadgets. We could go through each equation looking for Gadget and replacing it with Widget (or vice versa). However, Gadget and Widget are referring to the same unit and we can therefore define them as synonyms. We will also add the plural forms (Gadgets, Widgets) in case we typed a plural by mistake.
Ø | Select the menu item Model>Settings… and click the tab Units Equiv. |
Ø | In the editing box, type Gadget, Gadgets, Widget, Widgets and then click on the button Add Editing, then on OK. |
Ø | Select Model>Units Check from the menu (or press Ctrl + U). |
Now units should check out AOK. If they do not, read the units errors Output window and try to figure out why. Refer to the units for each variable in the equation set above.