Hi, can someone code the following project?
Thanks goats you're the boss .
# Natural simulation
Below is one of the projects evaluated.
It has to be done in <u>binรดme</u>! If plagiarism is detected with another group, 0 for everyone involved.
Even if you can carry out the whole of this project with a jupyter notebook, the latter will not be the most optimal for managing menus and display succession (as specified in [chapter 0](../courses/chapitre_0_jupyter_notebook.ipynb)). <u>You can</u> choose to write your code in a simple python file (extension
In all cases, you are expected to provide a notebook containing your explanations and algorithmic choices, and illustrating how you meet the customer's needs. You can also indicate the known limitations of your programme and suggestions.
So, to sum up, the output of your project will be either :
All of this should be returned in a `.zip' archive.
Make sure that the images in your notebook have been exported before submitting, and that you have clicked on the submit button in the pedagotheque. No assessment will take place after the submission date, for whatever reason.
The first and last names of each member of the pairing must appear at the beginning of the jupyter notebook.
The submission must be made by only one member of the pair, not both.
## Minutes of the meeting with the customer
| Field | Content
|-------------------|-----------------
| 1/12/2025
| Customer** | A. Lebis
| Requirements and specifications for a simulation of a natural model
### Introduction
During our meeting, the client expressed the need to develop a simulation of a natural model involving a prey-predator model. The main objective is to be able to model how an ecosystem evolves in a given situation with specific constraints.
### Functional requirements
* Implementation of a prey-predator model:
* Implement the Lotka-Volterra predation equation between and
* Intricate a dual prey-predator model (2MP):
* Model the interraction between two predation systems representing the food chain pyramid, i.e. eats , and is eaten by .
* Intrication of a dual prey-predator model (2MP):
* Model the interraction between two predation systems representing the food chain pyramid, i.e. eats , and is eaten by .
* Study the dual 2MP model:
* Study and identify remarkable configurations (such as stable configurations) of the 2MP model.
* Visualisation of simulated individuals:
* Represent, on the command line, a 2D terrain where the different individuals of each species move (be careful, there can't be two elements on the same square): the way the animals move are left to your discretion
* Match the display to the 2MP model
* Implement the principle of seasonality:
* The cycle of changing seasons must be implemented in the simulation, which will have the effect of modifying the parameters of reproducibility and mortality of individuals in the simulation.
* Life cycle:
* When an individual is supposed to die according to your model, it will always be the oldest individuals first.
* Command line management menu :
* A command line interface to display a menu allowing you to configure the parameters of the 2MP model or load configurations that you have preset.
* Allows the user to start at a specific point in the simulation, as well as to go back in time
* Enable the placement of a type of individual in the grid (which therefore affects the number of individuals) during the simulation.
* Allow parameters to be changed during the simulation
* Enable the change of seasons to be taken into account or not
### Functional wishes
* If possible, propose a new version of the Lotka-Volterra model:
* Manage the predator's dependence not on one prey but on two โpreysโ, i.e. its food source on the one hand and water on the other -- which has its own cycle to be defined.
* If possible, a realistic display:
* Match the display even more closely to the calculated model, by making the predators move on the prey (when the prey are already moving) and birth individuals next to others of the same species. To do this, the client suggests looking at the evolution of the population over n time steps and then using this to direct the individuals.
### Concerns and Constraints
| Field | Content
|-------------------|-----------------
|Budget| This doesn't seem to be a problem for the client.
|**The project must be delivered <u>before</u> 24 December 2024, 23:59.
|Delivery method| The project is to be delivered, with all its content and ancillary resources, on the educational library, and only.
|Training| A potential need for end-user training has been identified, so it is important to document the application produced.
|Intellectual Property| The project will be taken over internally after delivery, the client expects the code to be documented if possible using documentation comments and the
|Functional Guarantee| The customer requires a guarantee of the functional requirements through testing.
### Technical Appendices
#### Lotka-Volterra predation equations
$$frac{\text{d}x}{\text{d}t}=x(t)(\alpha - \beta y(t))$$
$$frac{\text{d}y}{\text{d}t}=x(t)(\delta x(t) - \gamma)$$
Where
The parameters characterising the two species $x$ and $y$ can be interpreted as follows,
Thanks goats you're the boss .
# Natural simulation
Below is one of the projects evaluated.
It has to be done in <u>binรดme</u>! If plagiarism is detected with another group, 0 for everyone involved.
Even if you can carry out the whole of this project with a jupyter notebook, the latter will not be the most optimal for managing menus and display succession (as specified in [chapter 0](../courses/chapitre_0_jupyter_notebook.ipynb)). <u>You can</u> choose to write your code in a simple python file (extension
.py
). In this case, the tests for your functionality will also have to be written in the python file.In all cases, you are expected to provide a notebook containing your explanations and algorithmic choices, and illustrating how you meet the customer's needs. You can also indicate the known limitations of your programme and suggestions.
So, to sum up, the output of your project will be either :
- A jupyter notebook file (and associated files) containing everything OU
- A python file containing your code and tests AND a jupyter notebook file containing everything else (and associated files).
All of this should be returned in a `.zip' archive.
Make sure that the images in your notebook have been exported before submitting, and that you have clicked on the submit button in the pedagotheque. No assessment will take place after the submission date, for whatever reason.
The first and last names of each member of the pairing must appear at the beginning of the jupyter notebook.
The submission must be made by only one member of the pair, not both.
## Minutes of the meeting with the customer
| Field | Content
|-------------------|-----------------
| 1/12/2025
| Customer** | A. Lebis
| Requirements and specifications for a simulation of a natural model
### Introduction
During our meeting, the client expressed the need to develop a simulation of a natural model involving a prey-predator model. The main objective is to be able to model how an ecosystem evolves in a given situation with specific constraints.
### Functional requirements
* Implementation of a prey-predator model:
* Implement the Lotka-Volterra predation equation between and
* Intricate a dual prey-predator model (2MP):
* Model the interraction between two predation systems representing the food chain pyramid, i.e. eats , and is eaten by .
* Intrication of a dual prey-predator model (2MP):
* Model the interraction between two predation systems representing the food chain pyramid, i.e. eats , and is eaten by .
* Study the dual 2MP model:
* Study and identify remarkable configurations (such as stable configurations) of the 2MP model.
* Visualisation of simulated individuals:
* Represent, on the command line, a 2D terrain where the different individuals of each species move (be careful, there can't be two elements on the same square): the way the animals move are left to your discretion
* Match the display to the 2MP model
* Implement the principle of seasonality:
* The cycle of changing seasons must be implemented in the simulation, which will have the effect of modifying the parameters of reproducibility and mortality of individuals in the simulation.
* Life cycle:
* When an individual is supposed to die according to your model, it will always be the oldest individuals first.
* Command line management menu :
* A command line interface to display a menu allowing you to configure the parameters of the 2MP model or load configurations that you have preset.
* Allows the user to start at a specific point in the simulation, as well as to go back in time
* Enable the placement of a type of individual in the grid (which therefore affects the number of individuals) during the simulation.
* Allow parameters to be changed during the simulation
* Enable the change of seasons to be taken into account or not
### Functional wishes
* If possible, propose a new version of the Lotka-Volterra model:
* Manage the predator's dependence not on one prey but on two โpreysโ, i.e. its food source on the one hand and water on the other -- which has its own cycle to be defined.
* If possible, a realistic display:
* Match the display even more closely to the calculated model, by making the predators move on the prey (when the prey are already moving) and birth individuals next to others of the same species. To do this, the client suggests looking at the evolution of the population over n time steps and then using this to direct the individuals.
### Concerns and Constraints
| Field | Content
|-------------------|-----------------
|Budget| This doesn't seem to be a problem for the client.
|**The project must be delivered <u>before</u> 24 December 2024, 23:59.
|Delivery method| The project is to be delivered, with all its content and ancillary resources, on the educational library, and only.
|Training| A potential need for end-user training has been identified, so it is important to document the application produced.
|Intellectual Property| The project will be taken over internally after delivery, the client expects the code to be documented if possible using documentation comments and the
pydoc
command.|Functional Guarantee| The customer requires a guarantee of the functional requirements through testing.
### Technical Appendices
#### Lotka-Volterra predation equations
$$frac{\text{d}x}{\text{d}t}=x(t)(\alpha - \beta y(t))$$
$$frac{\text{d}y}{\text{d}t}=x(t)(\delta x(t) - \gamma)$$
Where
- $t$ is time ;
- $x(t)$ is the number of prey ( or ) as a function of time.
- $y(t)$ is the number of predators ( or ) as a function of time;
- the derivatives $\text{d}x$ and $\text{d}y$ represent the variation in the populations of prey and predators respectively over time.
The parameters characterising the two species $x$ and $y$ can be interpreted as follows,
- $\alpha$, the reproducibility rate intrinsic to species x, in other words the prey ;
- $\beta$, the prey mortality rate due to the predators encountered;
- $\delta$, the predator reproduction rate as a function of the prey encountered and eaten;
- $\gamma$, the intrinsic mortality rate of predators (here constant and independent of the number of prey).