Performing an electrical calculation, there are data dealing about “nodes” and “branches” like
node (id): 1, 2, 3, 4 (four nodes in the network)
branch data (three branches in the network, connecting the four nodes - “from” and “to” side can be switched):
id | from (node) | to (node) | branch-status (binary)
1 1 2 1
2 3 2 1
3 4 3 1
In future, the parameter branch-status shall become a variable, so that the solver can decide about the status.
Is there a possibility to setup a set, dealing with the connected nodes starting at a certain initial node-id (e.g. “1”)?
So, in the example, this set shall contais the data (1,2,3,4) since all nodes are connected among each other.
Setting the 3rd branch-status to 0, the set only have to contain the data (1,2,3) since node 4 isn’t connected any more.
Starting from the original status information and setting the 1st branch-status to 0, the set only have to contain the data (1) - only the initial node remains in the set.
Best regards,
Lothar