Variables
Main.Variables History
Hide minor edits - Show changes to output
Changed lines 23-24 from:
v2 = 2 * p1 ! initializes to 3.0
v3 = exp(p2) * p1 ! initializes to exp(3.0) * 1.5
v3 = exp(
to:
v2 = 2 * v1 ! initializes to 3.0
v3 = exp(v2) * v1 ! initializes to exp(3.0) * 1.5
v3 = exp(v2) * v1 ! initializes to exp(3.0) * 1.5
Changed lines 25-26 from:
x < 5 ! initializes to 1.0 (default) with upper bound 5
to:
x < 5 ! initializes to 1.0 (default)
! with upper bound 5
! with upper bound 5
Changed lines 28-30 from:
z = 1.8 < 2.3 >=0 ! initializes to 1.8 with upper and lower bounds
to:
z = 1.8 < 2.3 >=0 ! initializes to 1.8
! with upper bound 2.3
! and lower bound 0
! with upper bound 2.3
! and lower bound 0
Changed lines 20-28 from:
End Model
to:
Variables
v0 ! no initial value, default = 1
v1 = 1.5 ! initializes to 1.5
v2 = 2 * p1 ! initializes to 3.0
v3 = exp(p2) * p1 ! initializes to exp(3.0) * 1.5
x < 5 ! initializes to 1.0 (default) with upper bound 5
y = 2 ! initializes to 2.0
z = 1.8 < 2.3 >=0 ! initializes to 1.8 with upper and lower bounds
End Variables
v0 ! no initial value, default = 1
v1 = 1.5 ! initializes to 1.5
v2 = 2 * p1 ! initializes to 3.0
v3 = exp(p2) * p1 ! initializes to exp(3.0) * 1.5
x < 5 ! initializes to 1.0 (default) with upper bound 5
y = 2 ! initializes to 2.0
z = 1.8 < 2.3 >=0 ! initializes to 1.8 with upper and lower bounds
End Variables
Deleted lines 28-31:
Global variable name for variable ''v0'' in model ''example'' and file ''test.apm'' solved in a steady-state ''ss'' simulation.
ss.test.example.v0
Changed line 17 from:
(:table border=1 width=50% align=left bgcolor=#EEEEEE cellspacing=0:)
to:
(:table border=1 width=100% align=left bgcolor=#EEEEEE cellspacing=0:)
Changed line 22 from:
v0 ! no initial value provided - default = 1
to:
v0 ! no initial value, default = 1
Changed line 30 from:
Global variable name for variable ''v0'' in model ''example'' and file ''test'' solved in a steady-state ''ss'' simulation.
to:
Global variable name for variable ''v0'' in model ''example'' and file ''test.apm'' solved in a steady-state ''ss'' simulation.
Changed lines 30-31 from:
to:
Global variable name for variable ''v0'' in model ''example'' and file ''test'' solved in a steady-state ''ss'' simulation.
Added lines 11-14:
!!! Global Name
Variables are identified by the simulation mode, file name, model or object name, and variable name. These names are separated by a period to form a global name. These global names are used in configuration files to identify the variable.
Variables are identified by the simulation mode, file name, model or object name, and variable name. These names are separated by a period to form a global name. These global names are used in configuration files to identify the variable.
Changed line 19 from:
! Example variable declarations
to:
! Example variable declarations in test.apm
Added lines 29-31:
(:cellnr:)
Global variable name for variable ''v0'' in model ''example'' and file ''test'' solved in a steady-state ''ss'' simulation.
ss.test.example.v0
Global variable name for variable ''v0'' in model ''example'' and file ''test'' solved in a steady-state ''ss'' simulation.
ss.test.example.v0
Changed line 15 from:
! Example model that demonstrates parameter declarations
to:
! Example variable declarations
Changed lines 18-22 from:
my_
to:
v0 ! no initial value provided - default = 1
v1 = 1.5 ! initializes to 1.5
v2 = 2 * p1 ! initializes to 3.0
v3 = exp(p2) * p1 ! initializes to exp(3.0) * 1.5
my_variable = 1 ! initializes to 1.0
v1 = 1.5 ! initializes to 1.5
v2 = 2 * p1 ! initializes to 3.0
v3 = exp(p2) * p1 ! initializes to exp(3.0) * 1.5
my_variable = 1 ! initializes to 1.0
Changed line 17 from:
to:
Variables
Changed line 23 from:
End Parameters
to:
End Variables
Changed lines 11-13 from:
to:
(:table border=1 width=50% align=left bgcolor=#EEEEEE cellspacing=0:)
Deleted lines 12-13:
(:cell class='markup1':)
Deleted line 23:
Deleted lines 28-43:
!!! General Usage
(:table align='center':)
(:cellnr class='markup1':)
[-'''What to type'''-]
(:cell class='markup2':)
[-'''What it looks like'''-]
(:tableend:)
!!![[#lists]] Scope
(:markup class=horiz:)
All variables have global scope. This facilitates the exchange of information between models but can also lead to name conflicts. Variables that are part of objects have the object name pre-pended. In order to use an object's variable in an equation, a connection must be made to a user-defined variable.
(:markupend:)
Changed lines 9-28 from:
All variables have global scope. This facilitates the exchange of information between models but can also lead to name conflicts. Variables that are part of objects have the object name pre-pended. In order to use an object's variable in an equation, a connection must be made to a user-defined variable.
to:
All variables have global scope. This facilitates the exchange of information between models but can also lead to name conflicts. Object variables have the object name pre-pended. In order to use an object's variable in an equation, a connection must be made to a user-defined variable.
>>blue<<
(:table border=1 width=50% align=left bgcolor=#EEEEEE cellspacing=0 :)
(:cellnr:)
(:table class='markup horiz' align='left':)
(:cell class='markup1':)
! Example model that demonstrates parameter declarations
Model example
Parameters
p0 ! no initial value provided - default = 1
p1 = 1.5 ! initializes to 1.5
p2 = 2 * p1 ! initializes to 3.0
p3 = exp(p2) * p1 ! initializes to exp(3.0) * 1.5
my_parameter = 1 ! initializes to 1.0
End Parameters
End Model
(:tableend:)
>><<
>>blue<<
(:table border=1 width=50% align=left bgcolor=#EEEEEE cellspacing=0 :)
(:cellnr:)
(:table class='markup horiz' align='left':)
(:cell class='markup1':)
! Example model that demonstrates parameter declarations
Model example
Parameters
p0 ! no initial value provided - default = 1
p1 = 1.5 ! initializes to 1.5
p2 = 2 * p1 ! initializes to 3.0
p3 = exp(p2) * p1 ! initializes to exp(3.0) * 1.5
my_parameter = 1 ! initializes to 1.0
End Parameters
End Model
(:tableend:)
>><<
Changed line 14 from:
(:table class='markup horiz' align='center':)
to:
(:table align='center':)
Deleted lines 19-40:
(:markup class=horiz:)
An empty line
starts a new paragraph.
(:markupend:)
(:markup class=horiz:)
A single newline
usually doesn't affect the layout.
Use two backslashes\\
to break a line.
[[<<]]
Use three backslashes\\\
for two line breaks.
(:markupend:)
(:markup class=horiz:)
A single backslash \
joins the next line \
to the previous one.
(:markupend:)
Changed line 43 from:
!!![[#lists]] Lists
to:
!!![[#lists]] Scope
Changed lines 45-48 from:
** more asterisks produce deeper lists
*** the list is terminated
by the first line that is not a list
to:
All variables have global scope. This facilitates the exchange of information between models but can also lead to name conflicts. Variables that are part of objects have the object name pre-pended. In order to use an object's variable in an equation, a connection must be made to a user-defined variable.
Deleted lines 51-75:
>>blue<<
(:table class='markup horiz' align='left':)
(:cell class='markup1':)
[@! Example model that demonstrates parameter declarations
Model example
Parameters
p0 ! no initial value provided - default = 1
p1 = 1.5 ! initializes to 1.5
p2 = 2 * p1 ! initializes to 3.0
p3 = exp(p2) * p1 ! initializes to exp(3.0) * 1.5
my_parameter = 1 ! initializes to 1.0
End Parameters
End Model@]
(:tableend:)
>><<
!!![[#lists]] Lists
(:markup class=horiz:)
* lists are created by using asterisks
** more asterisks produce deeper lists
*** the list is terminated
by the first line that is not a list
(:markupend:)
Added lines 10-50:
!!! General Usage
(:table class='markup horiz' align='center':)
(:cellnr class='markup1':)
[-'''What to type'''-]
(:cell class='markup2':)
[-'''What it looks like'''-]
(:tableend:)
(:markup class=horiz:)
An empty line
starts a new paragraph.
(:markupend:)
(:markup class=horiz:)
A single newline
usually doesn't affect the layout.
Use two backslashes\\
to break a line.
[[<<]]
Use three backslashes\\\
for two line breaks.
(:markupend:)
(:markup class=horiz:)
A single backslash \
joins the next line \
to the previous one.
(:markupend:)
!!![[#lists]] Lists
(:markup class=horiz:)
* lists are created by using asterisks
** more asterisks produce deeper lists
*** the list is terminated
by the first line that is not a list
(:markupend:)
Added line 13:
>>blue<<
Deleted line 15:
Added line 26:
(:tableend:)
Deleted line 27: