@@ -376,16 +376,17 @@ def dynamics(self, t, x, u, params={}):
376
376
right hand side of the dynamical system. If the system is continuous,
377
377
returns the time derivative
378
378
379
- dx/dt = f(t, x, u)
379
+ dx/dt = f(t, x, u, params )
380
380
381
381
where `f` is the system's (possibly nonlinear) dynamics function.
382
382
If the system is discrete-time, returns the next value of `x`:
383
383
384
- x[t+dt] = f(t, x[t], u[t])
384
+ x[t+dt] = f(t, x[t], u[t], params )
385
385
386
- Where `t` is a scalar.
386
+ where `t` is a scalar.
387
387
388
- The inputs `x` and `u` must be of the correct length.
388
+ The inputs `x` and `u` must be of the correct length. The `params`
389
+ argument is an optional dictionary of parameter values.
389
390
390
391
Parameters
391
392
----------
@@ -395,6 +396,8 @@ def dynamics(self, t, x, u, params={}):
395
396
current state
396
397
u : array_like
397
398
input
399
+ params : dict (optional)
400
+ system parameter values
398
401
399
402
Returns
400
403
-------
@@ -421,7 +424,7 @@ def output(self, t, x, u, params={}):
421
424
Given time `t`, input `u` and state `x`, returns the output of the
422
425
system:
423
426
424
- y = g(t, x, u)
427
+ y = g(t, x, u[, params] )
425
428
426
429
The inputs `x` and `u` must be of the correct length.
427
430
@@ -433,6 +436,8 @@ def output(self, t, x, u, params={}):
433
436
current state
434
437
u : array_like
435
438
input
439
+ params : dict (optional)
440
+ system parameter values
436
441
437
442
Returns
438
443
-------
0 commit comments