Properties

Properties are specified in a Forio Equations file with a P or an M.

Most properties affect the appearance of a line variable or decision in the simulation, for example the label, or the number format. Here's how they work:

Example 1

Property Setting:

P Car Sales.Label = "Automobile Sales"

FML Interface Code:

$Values.get('Car Sales').Label = $Values.get('Car Sales')

Simulation Page Result: Automobile Sales = 200

Example 2

Property Setting:

P Revenue.NumberFormat = "$#,##0.00"

FML Interface Code:

$Values.get('Revenue')

Simulation Page Result: $20,000,000.00

Example 3

Property Setting:

M NumberFormat = "#,##0"

FML Interface Code:

$Values.get('Inventory')

Simulation Page Result: 45,673

 

Some properties can only affect the entire model. Examples of properties that affect the entire model include: StartTime, EndTime, and TimeFormat.

Variable and decision properties can also be used model-wide properties. When variable and decision properties are used as model-wide properties, they become the default properties for the model variables and can be over-ridden by specific variable or decision properties.

Variable and decision properties can be set at three levels:

1. Array Elements

Variable and decision properties can be used to define specific array elements.

Examples:

P Sales[Oranges].NumberFormat = "#,##0"

P Sales[Oranges].Label = "Sales of Oranges"

P Sales[Apples].Label = "Sales of Apples"

 

2. Variables and Decisions

Variable and decision properties can be applied to variables or decisions that have no arrays. Properties can also be set for entire arrays by setting the property for the name of the variable or decision.

Example:

P Sales.NumberFormat = "#,##0"

 

3. Model-Wide Settings

Variable and decision properties can be applied as the default property for the entire model. Properties for specific variables and decisions that conflict with model-wide properties will override model-wide properties.

Example:

M NumberFormat = "#,##0"

 

Reference for specific properties:

Variable and Decision Properties

Model Properties