aboutsummaryrefslogtreecommitdiffstats
path: root/examples/lotka_volterra/model.modelica
blob: 1ab761e9fa51f1a4e4926e881cd692410e972dfc (plain)
1
2
3
4
5
6
7
8
9
10
11
model LotkaVolterra
  parameter Real    alpha;
  parameter Real    beta;
  parameter Real    delta;
  parameter Real    gamma;
  Real              x;
  Real              y;
equation
  der(x) = (alpha * x) - (beta * x * y);
  der(y) = (delta * x * y) - (gamma * y);
end LotkaVolterra;