Question
Genetic Algorithms in Python: Write a Python program that prompts the user to enter a weight for a rat. The program should also include constants
Genetic Algorithms in Python:
Write a Python program that prompts the user to enter a weight for a rat. The program should also include constants called MUTATE_PROB (which is the probability of mutating), MUTATE_MIN (which is the minimum possible mutation modifier) and MUTATE_MAX (which is the maximum possible mutation modifier). You can set these constants to whatever you think is appropriate.
The program should determine if the rat is mutated, and if so, determine the weight modifier and apply it to the rat weight. Print out the rat weight at the end.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started