Variable and decision properties are used to set characteristics of a variable, decision or a subscripted element of either. Typically a propertyis prefaced by an "P". All variable properties may also be applied to the entire model by prefacing with an "M" instead of a "P". A few properties, e.g. AllowDivisionByZero or ExecuteDecisionImmediately, you will almost always want to apply to the entire model.
See properties to learn more about how variable and decision properties work.
If this property is true, then dividing any number by zero returns zero. The default is false, in which case dividing by zero returns infinity. It is most useful to set this property at the model level.
Examples:
P Price.AllowDivisionByZero = true
P Price[1].AllowDivisionByZero = true
M AllowDivisionByZero = true
The maximum limit for a decision. This is not enforced by the model, but is referenced by the #Validate macro.
Examples:
P Price.DecisionMax = 1000
P Price[1].DecisionMax = 1000
M DecisionMax = 1000
The minimum limit for a decision. This is not enforced by the model, but is referenced by the #Validate macro.
Examples:
P Price.DecisionMin = 0
P Price[1].DecisionMin = 0
M DecisionMin = 0
If true, a newly entered decision immediately impacts other model variables. If false, a newly entered decision by the user is not reflected in the model until the next step. Default value is true.
Examples:
P Price.ExecuteDecisionImmediately = true
P Price[1].ExecuteDecisionImmediately = true
M ExecuteDecisionImmediately = true
The maximum value for the y axis on a graph.
Examples:
P Sales.GraphMax = 1000
P Sales[1].GraphMax = 1000
M GraphMax = 1000
The minimum value for the y axis on a graph.
Examples:
P Sales.GraphMin = 0
P Sales[1].GraphMin = 0
M GraphMin = 0
A user-friendly label that will be displayed in graphs and tables. The default is the variable name.
Examples:
P Hires.Label = "Monthly Hires"
P Hires[1].Label = "Monthly Hires"
M Label = "Monthly Hires"
The number format for this element (in Excel Format). Defaults to an empty string.
Examples:
P Revenue.NumberFormat = "$#,##0"
P Revenue[1].NumberFormat = "$#,##0"
M NumberFormat = "$#,##0"
Determines whether a decision is reset to the calculated value after each step. Useful for investment or allocation decisions that you want to default to zero, as in the following example. Defaults to false.
Examples:
P Hires.ResetDecision = true
D Hires = 0
Determines whether the calculated result should be saved to the database. Useful for Broadcast Enterprise simulations (in which the developer has access to saved results) and for multiplayer simulations. Note that SaveResult is one of the few variable properties which may not be applied to the entire model. (You can include an "M SaveResult = true" statement in your model, but it will be ignored). Defaults to false.
Examples:
P Revenue.SaveResult = true
P Revenue[1].SaveResult = true
Determines whether values are tracked over time. Required for elements that are graphed. Set the model property to false to save memory. Defaults to true.
Examples:
P Sales.TimeSeries = false
P Sales[1].TimeSeries = false
M TimeSeries = false
If true, use the DecisionMax as a maximum limit for the decision. This is set to true automatically if the DecisionMax property is set. Default value is false.
Examples:
P Price.UseDecisionMax = true
P Price[1].UseDecisionMax = true
M UseDecisionMax = true
If true, use the DecisionMin as a maximum limit for the decision. This is set to true automatically if the DecisionMin property is set. Defaults to false.
Examples:
P Price.UseDecisionMin = true
P Price[1].UseDecisionMin = true
M UseDecisionMin = true
If true, use the GraphMax as a maximum value of the graph axis. This is set to true automatically if the GraphMax property is set. Default value is false.
Examples:
P Sales.useGraphMax = true
P Sales[1].useGraphMax = true
M useGraphMax = true
If true, use the GraphMin as a maximum value of the graph axis. This is set to true automatically if the GraphMin property is set. Defaults value is false.
Examples:
P Sales.UseGraphMin = false
P Sales[1].UseGraphMin = false
M UseGraphMin = false