13.07.2015 Views

LIAM 2 User Guide

LIAM 2 User Guide

LIAM 2 User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>LIAM</strong> 2 <strong>User</strong> <strong>Guide</strong>, Release 0.7.0MYARRAY:type: floatPlease see the globals usage section for how to use them in you expressions.There are globals with a special status: periodic globals. Those globals have a different value for each period.periodic is thus a reserved word and is always a table, so the “fields” keyword can be omitted for that table.For example, the retirement age for women in Belgium has been gradually increasing from 61 in 1997 to 65 in2009. A global variable WEMRA has therefore been included.globals:periodic:# PERIOD is an implicit column of the periodic table- WEMRA: float3.3 entitiesEach entity has a unique identifier and a set of attributes (fields). You can use different entities in one model. Youcan define the interaction between members of the same entity (eg. between partners) or among different entities(eg. a person and its household) using links.The processes section describe how the entities behave. The order in which they are declared is not important.In the simulation block you define if and when they have to be executed, this allows to simulate processes ofdifferent entities in the order you want.<strong>LIAM</strong> 2 declares the entities as follows:entities:entity-name1:fields:fields definitionlinks:links definitionmacros:macros definitionprocesses:processes definitionentity-name2:...As we use YAML as the description language, indentation and the use of ”:” are important.3.3.1 fieldsThe fields hold the information of each member in the entity. That information is global in a run of the model.Every process defined in that entity can use and change the value.<strong>LIAM</strong> 2 handles three types of fields:• bool: boolean (True or False)• int: integer• float: real numberThere are two implicit fields that do not have to be defined:• id: the unique identifier of the item6 Chapter 3. Model Definition

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!