Define input data structures. #12
Replies: 6 comments
-
If we define the occurrence of a variable in a given expression as:
Then, and individual node representing the calculation unit in the parallel model representation could be defined as: And finally we could define: With this given structure, the algorithm to construct the edges of the partition graph could be defined as:
where: This means that there is a constant expression defined in a non scalar node. Build an 1
The first node defines This means that each time Where the left hand side of the map is the receiver of the new value and the right hand side of the map are the senders. In the same way we can define the opposite check for N to 1 relations. The set nodes should be constructed directly from the
We should probably define an operator |
Beta Was this translation helpful? Give feedback.
-
From this Modelica example:
We can define: For the lhs of computing node 1 For the rhs of computing node 1 For the lhs of computing node 2 For the rhs of computing node 2
The nodes can be represented as:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Simple example application:
The input for this model could be: For the lhs of computing node 2 For the rhs of computing node 2
The nodes can be represented as:
Algorithm application from
Now we apply the algorithm defined above Assume we have a
After this iteration the graph should look like: |
Beta Was this translation helpful? Give feedback.
-
Build edge-set maps Where
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We must define the input data structures used to generate the sb partitioner graphs.
Probably something of the form:
Where interval is an SBG interval (it could be a unique interval), the id of the variable involved and the expression which is a linear function.
The input will probably be a list or set of expressions of the from defined above.
Note We must take into account that besides the id and the exp we will have to add the cost functions.
Beta Was this translation helpful? Give feedback.
All reactions