We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55730b6 commit e89c86aCopy full SHA for e89c86a
doc/iosys.rst
@@ -79,13 +79,13 @@ We begin by defining the dynamics of the system
79
L = x[1]
80
81
# Compute the control action (only allow addition of food)
82
- u_0 = u if u > 0 else 0
+ u_0 = u[0] if u[0] > 0 else 0
83
84
# Compute the discrete updates
85
dH = (r + u_0) * H * (1 - H/k) - (a * H * L)/(c + H)
86
dL = b * (a * H * L)/(c + H) - d * L
87
88
- return [dH, dL]
+ return np.array([dH, dL])
89
90
We now create an input/output system using these dynamics:
91
0 commit comments