modelLotkaVolterra
Lotka-Volterra model in state space form
Extends from ABCD (Equations written in (potentially non-linear) ABCD form).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | alpha | 0.1 | Reproduction rate of prey |
| Real | beta | 0.02 | Mortality rate of predator per prey |
| Real | gamma | 0.4 | Mortality rate of predator |
| Real | delta | 0.02 | Reproduction rate of predator per prey |
| Real | x_init | 10 | Initial prey population |
| Real | y_init | 10 | Initial predator population |
| Integer | nx (from ABCD) | ||
| Integer | ny (from ABCD) | ||
| Integer | nu (from ABCD) | ||
| Real[nx] | x0 (from ABCD) | fill(0, nx) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real[nx,nx] | A (from ABCD) | ||
| Real[nx,nu] | B (from ABCD) | ||
| Real[ny,nx] | C (from ABCD) | ||
| Real[ny,nu] | D (from ABCD) | ||
| Real[nu] | u (from ABCD) | ||
| Real[nx] | x (from ABCD) | ||
| Real[ny] | y (from ABCD) |