Find Jobs
Hire Freelancers

C++ GA simple

$10-30 USD

Terminado
Publicado hace más de 5 años

$10-30 USD

Pagado a la entrega
C++ Simple GA In this first project you are to write the simple GA using C++. Your problem should use the basic simple GA to evolve a string of all ones. Use the STL bitset to hold the bits of a chromosome. You are to have a population size of 50 chromosomes and each chromosome should be 20 bits long. Your crossover operator should be one point crossover with a probability of pcross(.8) and your mutation operation should randomly flip each bit with a probability of pmut(.o1). Use a roulette proportional selection algorithm. Have the GA stop when the optimal fitness is 20(size of the chromosome) or when 1000 iterations have been completed. New individuals are created using a loop randomly filling each bit with a 0 or 1. Your program when it stops should print out the optimal chromosome, the iteration it was discovered and the population that it appeared within. Run this problem 10 times using different srand(val) val’s. Change the chromosome size to 40 and do the same. Change the size to 60, 80, 100 and do the same. Write a report explaining what you observe as well as a run output for each chromosome size. Also within the report include a graph of the average fitness for the population from generation 0 to the generation that hit 20.
ID del proyecto: 17749592

Información sobre el proyecto

3 propuestas
Proyecto remoto
Activo hace 6 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
hi, i have been using cpp for implementing different kinds of algorithm. i love to do these things. let me if you prefer my profile.
$30 USD en 1 día
4,8 (17 comentarios)
3,9
3,9
3 freelancers están ofertando un promedio de $28 USD por este trabajo
Avatar del usuario
Hi, I have more than 5 years of experience programming in c, c ++, java and php. I have more than 2 years working as a full-stack programmer. I currently use laravel to manage my web projects in php. I speak Spanish and I am currently available.
$30 USD en 10 días
0,0 (1 comentario)
1,0
1,0

Sobre este cliente

Bandera de UNITED STATES
wichita falls, United States
5,0
1
Forma de pago verificada
Miembro desde sept 6, 2018

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.