Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite89c86a

Browse files
committed
Ensure array for updatefcn input
1 parent55730b6 commite89c86a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎doc/iosys.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ We begin by defining the dynamics of the system
7979
L= x[1]
8080
8181
# Compute the control action (only allow addition of food)
82-
u_0= uif u>0else0
82+
u_0= u[0]if u[0]>0else0
8383
8484
# Compute the discrete updates
8585
dH= (r+ u_0)* H* (1- H/k)- (a* H* L)/(c+ H)
8686
dL= b* (a* H* L)/(c+ H)- d* L
8787
88-
return [dH, dL]
88+
returnnp.array([dH, dL])
8989
9090
We now create an input/output system using these dynamics:
9191

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp