STGraph : a simple simulator for complex dynamic systemsAn introduction to STGraph Luca Mari, Version 4.11.07 The latest version of STGraph and of its documentation can be freely downloaded from the site: http://www.liuc.it/persone/lmari/stgraph/ The latest version of this "Introduction to STGraph" document can be freely downloaded from the file in next right column otherwise from the site: http://www.liuc.it/persone/lmari/stgraph/app/intro.pdf Here below you'll find some excerpts from such document: STGraph is a simulator for dynamic systems modeled according to the state-variable approach to System. Theory in the synchronous, discrete-time case. Systems are qualitatively modeled in STGraph as directed graphs, whose nodes and arrows (i.e., directed edges) represent respectively variables and dependence relations in variable definition. STGraph is a simulator for dynamic systems modeled according to the state-variable approach to System.
Expression Language
The language by which the expressions are defined, here called STEL (STgraph Expression Language), is a functional one, so that each node expression always produces one (and only one) value as result of its evaluation, no explicit variable assignment is allowed and no side effects can be generated in the evaluation. STEL is a weakly typed language (i.e., the variable type is automatically assigned by the system), with double as the basic data type, also interpreted as integer or boolean when required. Each variable can be:
Logic of execution Each node can be used to define an arbitrary number of other nodes, i.e., an arbitrary number of outgoing arrows can be drawn from each node. Conversely, each node can be defined by an arbitrary number of other nodes, i.e., an arbitrary number of incoming arrows can be drawn to each node. The network of the arrows in the graph implicitly defines the sequence of evaluation.
Graph topology The node types also constrain the graph topology, and specifically the possibility of introducing loops (acyclic graphs are always topologically correct), according to the following general rule:
Submodels
Together with the listed node types, STGraph includes the submodel node type, by which each previously generated model can be embedded as a submodel in a model. An embedded submodel is accessible to its supermodel only through its input and output nodes, according to the following logic:
The latest version of this "Introduction to STGraph" document can be freely downloaded from the file in next right column otherwise from the site: http://www.liuc.it/persone/lmari/stgraph/app/intro.pdf
For information and consultancy ( Per informazioni e consulenze ):
Scarica gli allegati
Notificami nuovi commenti
|
|

Il BLOG di Nicola Antonucci per aiutare Risparmiatori, Investitori e Traders a scegliere consapevolmente e... a non farsi fregare.

vai al sito personale