Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Genetic algorithms - repeated values

Subject: Genetic algorithms - repeated values

From: Sata

Date: 7 Nov, 2012 11:00:08

Message: 1 of 2

My function A produces same values repeatedly even though using different variables (assuming that they are all correct answers and there is no error here). E.g out of 1,000 points produced, 6,000 points are repeated values. When I run GA, this will burden the algorithms to optimize my function. How can I program in such a way that GA will skip the repeated points during the crossover operation? How can I handle the repeated values in my function? How to filter the same values?

Subject: Genetic algorithms - repeated values

From: Alan_Weiss

Date: 7 Nov, 2012 13:08:38

Message: 2 of 2

On 11/7/2012 6:00 AM, Sata wrote:
> My function A produces same values repeatedly even though using
> different variables (assuming that they are all correct answers and
> there is no error here). E.g out of 1,000 points produced, 6,000
> points are repeated values. When I run GA, this will burden the
> algorithms to optimize my function. How can I program in such a way
> that GA will skip the repeated points during the crossover operation?
> How can I handle the repeated values in my function? How to filter
> the same values?

Have you taken steps to ensure that your initial population is
appropriately diverse?
http://www.mathworks.com/help/gads/genetic-algorithm-examples.html#f18421

Alan Weiss
MATLAB mathematical toolbox documentation

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us