aboutsummaryrefslogtreecommitdiffstats
path: root/examples/lotka_volterra/model.modelica
diff options
context:
space:
mode:
Diffstat (limited to 'examples/lotka_volterra/model.modelica')
-rw-r--r--examples/lotka_volterra/model.modelica5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/lotka_volterra/model.modelica b/examples/lotka_volterra/model.modelica
index 1ab761e..706ebc3 100644
--- a/examples/lotka_volterra/model.modelica
+++ b/examples/lotka_volterra/model.modelica
@@ -1,10 +1,11 @@
model LotkaVolterra
+ "Predator-Prey equations describing population dynamics of two biological species"
parameter Real alpha;
parameter Real beta;
parameter Real delta;
parameter Real gamma;
- Real x;
- Real y;
+ Real x "population of prey";
+ Real y "population of predator";
equation
der(x) = (alpha * x) - (beta * x * y);
der(y) = (delta * x * y) - (gamma * y);