Created two interacting nodes (I renamed them "control" and "PM")
They each do a silly computation:
- control increments the output of PM (
y) by one and this result (x) is the input to PM - PM increments its input (
x) by0.5and this result is the input to control. - To keep it from being an infinite loop, they both terminate when
x>10, and reset their values back to0(so I can rerun the notebook easily).
When I first start one node, it is just stuck at 0, but when I start the other node, they progress such that x is always one larger than y
- As draft 1 but one dedicated time heartbeat + array of weights for optimization for inputs/outputs
- controller: (MPC algorithm using cvxopt)
- input #1: simtime, ym (heart rate, pressure)
- input #2 configuration matrices
- output #1: simtime, u (stimulations to heart)
- PM (simplified cardiac model)
- input #1: simtime, u
- input #2: configuration matrices
- output #1: simtime, ym (for next heartbeat, ie time advances)
- controller: (MPC algorithm using cvxopt)
- Untested idea: Sleeping with standard I/O in Jupyter Lab?




