Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python question: we are going to build an agent-based model to simulate the evolution of bacteria to become resistant to antibiotics. Our goal is to

Python question:

we are going to build an agent-based model to simulate the evolution of bacteria to become resistant to antibiotics. Our goal is to build a simulation that reconstructs this real-world experiment. Please help.

image text in transcribed

image text in transcribed

To make this ABM work we would like you to build a system with the following assumptions. 1. Assume a random rectangular petri dish of N locations wide and M locations tall (e.g. 90 x 45). 2. Assume that each location on the board is given three (3) different types of antibiotics which each can have continuous values from min to max (e.g. 0 to 1). 3. Assume that bacteria on the board do not move. 4. Assume each bacteria has a genome sequence of three genes of continuous number (e.g. 0 to 1) that provide immunity to the antibiotics. Each gene will correspond to one of the antibiotic elements deposited on the petri dish 5. Assume that at each iteration of the simulation each bacteria can randomly copy itself once to a random neighboring empty cell (up, down, left, or right). 6. Assume that during the copy there is a chance of mutating each gene (randomly selecting a new value between zero and one) by some mutation rate (e.g. 20%). 7. Assume that a bacteria will "die" if the value of it's gene does not contain resistance to any one of the three anti-bacteria. For example, if the gene is a number less than the value of it's corresponding antibiotic it will die. NOTE: Assumptions are very important. Make sure you document any major changes, clarifications or deviations from the above. Instead of asking your instructor for clarification, try looking at the end goal (simulate the petri dish experiment) and make your own clarification. There are many right answers. To make this ABM work we would like you to build a system with the following assumptions. 1. Assume a random rectangular petri dish of N locations wide and M locations tall (e.g. 90 x 45). 2. Assume that each location on the board is given three (3) different types of antibiotics which each can have continuous values from min to max (e.g. 0 to 1). 3. Assume that bacteria on the board do not move. 4. Assume each bacteria has a genome sequence of three genes of continuous number (e.g. 0 to 1) that provide immunity to the antibiotics. Each gene will correspond to one of the antibiotic elements deposited on the petri dish 5. Assume that at each iteration of the simulation each bacteria can randomly copy itself once to a random neighboring empty cell (up, down, left, or right). 6. Assume that during the copy there is a chance of mutating each gene (randomly selecting a new value between zero and one) by some mutation rate (e.g. 20%). 7. Assume that a bacteria will "die" if the value of it's gene does not contain resistance to any one of the three anti-bacteria. For example, if the gene is a number less than the value of it's corresponding antibiotic it will die. NOTE: Assumptions are very important. Make sure you document any major changes, clarifications or deviations from the above. Instead of asking your instructor for clarification, try looking at the end goal (simulate the petri dish experiment) and make your own clarification. There are many right answers

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions

Question

Understand the reasons for engaging consultants

Answered: 1 week ago