This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorial_15-implementing_using_one_compartment [2023/04/03 16:11] dmytroh |
tutorial_15-implementing_using_one_compartment [2023/04/03 17:38] (current) dmytroh |
||
---|---|---|---|
Line 6: | Line 6: | ||
====Option 1==== | ====Option 1==== | ||
+ | |||
+ | Create parameters according to table below: | ||
+ | |||
+ | ^Parameter | ||
+ | |a |1/ | ||
+ | |c |1/ | ||
+ | |b |1/(year F)|5.0E-4|the death rate per encounter of rabbits due to predation | ||
+ | |e |F/R | ||
+ | |Init_population | ||
+ | |||
+ | Values for parameter Initial population: | ||
+ | * // | ||
+ | * // | ||
+ | |||
+ | Create source, sink, compartments and transfer according to picture below: | ||
+ | {{rabbitfoxmodel3.png? | ||
+ | |||
Equations for Transfers: | Equations for Transfers: | ||
* // | * // | ||
Line 12: | Line 29: | ||
* // | * // | ||
- | Initial Conditions for compartment: | + | **Initial Conditions** for compartment: |
* For // | * For // | ||
* For // | * For // | ||
- | Init_population[Rabbits]= 1000 | ||
- | Init_population[Foxes]= 4 | ||
- | < | ||
- | <table xmlns=" | ||
- | < | ||
- | <td style=" | ||
- | <td style=" | ||
- | <td style=" | ||
- | </ | ||
- | < | ||
- | <td style=" | ||
- | <td style=" | ||
- | <td style=" | ||
- | </ | ||
- | < | ||
- | <td style=" | ||
- | <td style=" | ||
- | <td style=" | ||
- | </ | ||
- | </ | ||
- | </ | ||
- | //'' | + | |
+ | ====Option 2==== | ||
+ | Create parameters according to table below: | ||
+ | |||
+ | ^Parameter | ||
+ | |a |1/year |0.04 |the natural growth rate of rabbits in the absence of predation | ||
+ | |c |1/year |0.2 |the natural death rate of foxes in the absence of food (rabbits)| | ||
+ | |b |1/(year F)|5.0E-4|the death rate per encounter | ||
+ | |e |F/R | ||
+ | |||
+ | Create only one compartment with name // | ||
+ | |||
+ | {{rabbitfoxmodel4.png}} | ||
+ | |||
+ | **Initial Conditions** for compartment: | ||
+ | * For // | ||
+ | * For // | ||
+ | |||
+ | **dy/dt** for compartment: | ||
+ | * Rabbits: // | ||
+ | * Foxes: // | ||
Line 45: | Line 62: | ||
**Solution to the excersise** | **Solution to the excersise** | ||
- | + | * {{lotka-volterra.eco}} | |
- | * {{tutorial: | + | * old one {{tutorial: |