<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Genetic algorithms Archives - Pharmacelera | Pushing the limits of computational chemistry</title>
	<atom:link href="https://pharmacelera.com/blog/tag/genetic-algorithms/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description></description>
	<lastBuildDate>Tue, 24 May 2022 09:44:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://pharmacelera.com/wp-content/uploads/2022/04/cropped-Linkedin-avatar-32x32.png</url>
	<title>Genetic algorithms Archives - Pharmacelera | Pushing the limits of computational chemistry</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How Genetic Algorithms work?</title>
		<link>https://pharmacelera.com/blog/science/genetic-algorithms/</link>
		
		<dc:creator><![CDATA[Fernando Martín]]></dc:creator>
		<pubDate>Wed, 18 May 2022 07:29:21 +0000</pubDate>
				<category><![CDATA[Science]]></category>
		<category><![CDATA[artificial intelligence]]></category>
		<category><![CDATA[drug discovery]]></category>
		<category><![CDATA[Genetic algorithms]]></category>
		<category><![CDATA[machine learning]]></category>
		<guid isPermaLink="false">https://pharmacelera.com/?p=12952</guid>

					<description><![CDATA[<p>Sometimes, the solution space in search and optimization problems cannot be expressed as a tree / graph of options (see previous AI [&#8230;]</p>
<p>The post <a href="https://pharmacelera.com/blog/science/genetic-algorithms/">How Genetic Algorithms work?</a> appeared first on <a href="https://pharmacelera.com">Pharmacelera | Pushing the limits of computational chemistry</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="12952" class="elementor elementor-12952" data-elementor-post-type="post">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-ae7379e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="ae7379e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5215f6e" data-id="5215f6e" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7559e6c elementor-widget elementor-widget-text-editor" data-id="7559e6c" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Sometimes, the solution space in search and optimization problems cannot be expressed as a tree / graph of options (see <a href="https://pharmacelera.com/blog/science/artificial-intelligence-tree-search-algorithms/">previous AI post</a>) or it cannot be easily traversed by heuristics or greedy algorithms. In those situations, we often use stochastic methods, those that heavily rely on a well described and rational random distribution. Genetic algorithms (or its broader concept of genetic programming) are one of such techniques.</p><p>Genetic algorithms are fascinating although they might look awkward at first. Do they really work? This is a question I have been asked many times. In fact, they do!</p><p>Genetic algorithms mimic the natural laws of evolution of living organisms that use genes as a way to code a solution to the problem of surviving in a specific environment. Such natural laws rely on natural selection and reproduction in a species to generate a population of best fit individuals.</p><p>For the sake of simplicity and clarity, we will use an example we described in our previous posts. Let’s imagine we want to design a molecule that best resembles a molecular reference by joining together 4 molecular building blocks from a pool of 65,536 building blocks. We will assume that any combination of building blocks is possible, that building blocks can be repeated, that the order of building blocks matters, and we will not take into consideration the chemical reactions required to link them.</p><p>Although the field has been widely studied and there are many aspects of genetic algorithms that can be solved differently (how to initialize the first generation or population, how to select individuals to cross over, how to mutate the individuals, how to measure the quality of the individuals, when to finish the search, …), we will use a few simple methods to understand the concept. In addition, most of these different methods depend on the particularity of the problem and they often need to be defined by human expertise.</p><p>In a genetic algorithm, an individual (or a solution to a problem) is digitally coded as a set of chromosomes, each chromosome representing a specific characteristic of the individual. In our particular case, each of the 4 building blocks of a potential molecule is a chromosome. Hence, a valid molecule (a valid solution to the problem of finding a molecule similar to a reference molecule) is coded as an array of 4 16-bit identifiers (we need 16 bits to code one of the 65,536 possible building blocks). Find below 3 examples of possible individuals (solutions to the problem).</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-23c59e2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="23c59e2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7c03f25" data-id="7c03f25" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-c84aa1d elementor-widget elementor-widget-image" data-id="c84aa1d" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img fetchpriority="high" decoding="async" width="1024" height="378" src="https://pharmacelera.com/wp-content/uploads/2022/05/Figure-1-1024x378.png" class="attachment-large size-large wp-image-12954" alt="Example of individuals" srcset="https://pharmacelera.com/wp-content/uploads/2022/05/Figure-1-1024x378.png 1024w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-1-300x111.png 300w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-1-768x283.png 768w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-1-1536x566.png 1536w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-1-2048x755.png 2048w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-1-920x339.png 920w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-1-230x85.png 230w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-1-350x129.png 350w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-1-480x177.png 480w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Figure 1</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5a26f00 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5a26f00" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-63a8195" data-id="63a8195" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-a58a653 elementor-widget elementor-widget-text-editor" data-id="a58a653" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>We also need to define a fitness function, which describes how well the individual (the solution) satisfies the problem. In our case, we can use a Tanimoto-like metric to compare each molecule (each solution) to the reference molecule. We want to maximize this value.</p><p>Initially, the algorithm randomly generates a population of individuals (solutions). Let’s say a population of 10,000 randomly generated molecules (the identifiers of the building blocks are set to valid but arbitrary values). This population will become the first generation of the genetic algorithm and it will probably contain very poor individuals since their Tanimoto values will be very low (expected from a random population).</p><p>Next, the algorithm iterates over several generations in order to improve the individuals and to enhance the solution to the problem. At each iteration or generation, the algorithm selects individuals of the current population and it performs two different actions on them (cross over and mutation) to generate a similar size population (next generation) that will replace the previous one. The amount of iterations is very dependent on the problem. We can fix a number, we can define a convergence metric of the population or a combination of both (just in case the problem does not converge or it takes too long to do so). Let’s say we will iterate for 5,000 generations.</p><p>As commented, at each iteration, the algorithm selects pairs of two individuals, it crosses them over (reproduce) to generate a new individual, it might mutate it and it adds the new individual to the new generation (population). The iteration will be finished once the number of individuals in the next generation is equal to the number of individuals of the current generation.</p><p>In this select+cross+mutate cycle, the selection function prioritizes individuals from the current population that have a better fitness score. In this sense, it mimics natural selection by enabling good individuals (best fit) to have higher chances to generate off-spring (new solutions). The selection function also chooses poor individuals, although with less probability, to have a more diverse search space.</p><p>Crossing over (reproducing) two individuals means combining their chromosomes and generating a new individual (off-spring). Although several options exist, in our example, we will pick a random number of chromosomes from the first individual of the pair and the rest from the second. In the following figure, we show several potential offspring of two individuals.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-0f2969a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="0f2969a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-36b037b" data-id="36b037b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3c4bc60 elementor-widget elementor-widget-image" data-id="3c4bc60" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img decoding="async" width="1024" height="464" src="https://pharmacelera.com/wp-content/uploads/2022/05/Figure-2-1024x464.png" class="attachment-large size-large wp-image-12955" alt="Example of crossing-over" srcset="https://pharmacelera.com/wp-content/uploads/2022/05/Figure-2-1024x464.png 1024w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-2-300x136.png 300w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-2-768x348.png 768w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-2-1536x696.png 1536w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-2-2048x928.png 2048w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-2-920x417.png 920w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-2-230x104.png 230w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-2-350x159.png 350w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-2-480x217.png 480w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Figure 2</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-d98f0ae elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="d98f0ae" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-14d8498" data-id="14d8498" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-77320d7 elementor-widget elementor-widget-text-editor" data-id="77320d7" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Mutating an individual means randomly changing one or more of its chromosomes. Mutation is an action that needs to occur rarely but it will allow the algorithm to jump to a new part of the search space. In the following figure, we show several potential mutations of an individual.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2a4cec4 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2a4cec4" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5254008" data-id="5254008" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2f405ea elementor-widget elementor-widget-image" data-id="2f405ea" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img decoding="async" width="1024" height="471" src="https://pharmacelera.com/wp-content/uploads/2022/05/Figure-3-1024x471.png" class="attachment-large size-large wp-image-12956" alt="" srcset="https://pharmacelera.com/wp-content/uploads/2022/05/Figure-3-1024x471.png 1024w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-3-300x138.png 300w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-3-768x353.png 768w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-3-1536x706.png 1536w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-3-2048x942.png 2048w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-3-920x423.png 920w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-3-230x106.png 230w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-3-350x161.png 350w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-3-480x221.png 480w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Figure 3</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-93883ca elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="93883ca" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c34fdfc" data-id="c34fdfc" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3e8d1ed elementor-widget elementor-widget-text-editor" data-id="3e8d1ed" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>At the end of all iterations, the best fit or the set of best fit individuals are the solutions that the algorithm has found.</p><p>The following pseudo-code depicts the behavior of the described algorithm. As a stochastic method, genetic algorithms are not deterministic in nature and will generate different solutions each time they are executed (there are mechanisms to make them “randomly deterministic” for debugging or reproducibility purposes).</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-95bca4b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="95bca4b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d02cfd6" data-id="d02cfd6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-37519ae elementor-widget elementor-widget-text-editor" data-id="37519ae" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<pre>Initialize random population P of X individuals<br />For a number of iterations do<br />  Create an empty new population P’<br />  Repeat until new population P’ has reached X individuals<br />    Select 2 individuals from current population P<br />    Cross over these 2 individuals to create a new individual<br />    Potentially mutate the chromosomes of the new individual with a low probability<br />    Add the new individual to the new population P’<br />  End repeat<br />  Make the new population P’ be the current population P<br />End for<br />Select the best individual/s as the pseudo-optimal solution/s</pre>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-9011026 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="9011026" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b37e4f6" data-id="b37e4f6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-ec2d779 elementor-widget elementor-widget-text-editor" data-id="ec2d779" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Graphically, the evolution of the population and the search for a solution would look like the following figures.</p><p>Initially, a randomly selected population will have individuals scattered around the search space as shown in the figure below, where the x-axis represents the solution space (each point being a different molecule or solution to the problem), the y-axis their Tanimoto value with respect to the reference (the value to maximize) and the circles the individuals of the population (for the sake of clarity we have just plotted 20 individuals, not 10,000).</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2af8cd3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2af8cd3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f564d1d" data-id="f564d1d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-9251489 elementor-widget elementor-widget-image" data-id="9251489" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="225" src="https://pharmacelera.com/wp-content/uploads/2022/05/Figure-4-1024x225.png" class="attachment-large size-large wp-image-12957" alt="Random population" srcset="https://pharmacelera.com/wp-content/uploads/2022/05/Figure-4-1024x225.png 1024w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-4-300x66.png 300w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-4-768x169.png 768w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-4-1536x337.png 1536w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-4-2048x450.png 2048w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-4-920x202.png 920w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-4-230x50.png 230w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-4-350x77.png 350w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-4-480x105.png 480w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Figure 4</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-644a704 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="644a704" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7f83a76" data-id="7f83a76" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f6084dd elementor-widget elementor-widget-text-editor" data-id="f6084dd" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Over time, since better individuals have more chances to be selected and crossed over, the population tends to the local / global maxima points, as shown in the figure below.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5800637 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5800637" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e58a1df" data-id="e58a1df" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-21776d3 elementor-widget elementor-widget-image" data-id="21776d3" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="225" src="https://pharmacelera.com/wp-content/uploads/2022/05/Figure-5-1024x225.png" class="attachment-large size-large wp-image-12958" alt="First iteration" srcset="https://pharmacelera.com/wp-content/uploads/2022/05/Figure-5-1024x225.png 1024w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-5-300x66.png 300w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-5-768x169.png 768w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-5-1536x337.png 1536w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-5-2048x450.png 2048w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-5-920x202.png 920w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-5-230x50.png 230w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-5-350x77.png 350w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-5-480x105.png 480w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Figure 5</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-c412426 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="c412426" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ba8486f" data-id="ba8486f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-7d7f460 elementor-widget elementor-widget-text-editor" data-id="7d7f460" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>When the algorithm chooses to mutate an individual, it jumps to a new search space. If that new space is better than the current ones, this individual will have more probability to be selected and crossed over and the population will tend to move there. If the new space is worse, it does not have high chances to be selected and crossed over (low chances to survive). This is shown in the following picture for a single individual.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-721f607 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="721f607" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-37e9c6a" data-id="37e9c6a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-181918b elementor-widget elementor-widget-image" data-id="181918b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="248" src="https://pharmacelera.com/wp-content/uploads/2022/05/Figure-6-1024x248.png" class="attachment-large size-large wp-image-12960" alt="Mutations in population" srcset="https://pharmacelera.com/wp-content/uploads/2022/05/Figure-6-1024x248.png 1024w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-6-300x73.png 300w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-6-768x186.png 768w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-6-1536x372.png 1536w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-6-2048x496.png 2048w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-6-920x223.png 920w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-6-230x56.png 230w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-6-350x85.png 350w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-6-480x116.png 480w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Figure 6</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-8603b64 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="8603b64" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b917d93" data-id="b917d93" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-d53ae1d elementor-widget elementor-widget-text-editor" data-id="d53ae1d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>At the end, once the algorithm has iterated several times, the best individual or the best diverse individuals of the last population are the solutions found by the algorithm, as shown below. As commented before, the individuals of the last generation tend to be located near the local / global maxima points.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-a11cae2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="a11cae2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6d66d9f" data-id="6d66d9f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-d469203 elementor-widget elementor-widget-image" data-id="d469203" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
												<figure class="wp-caption">
										<img loading="lazy" decoding="async" width="1024" height="225" src="https://pharmacelera.com/wp-content/uploads/2022/05/Figure-7-1024x225.png" class="attachment-large size-large wp-image-12961" alt="" srcset="https://pharmacelera.com/wp-content/uploads/2022/05/Figure-7-1024x225.png 1024w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-7-300x66.png 300w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-7-768x169.png 768w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-7-1536x337.png 1536w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-7-2048x450.png 2048w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-7-920x202.png 920w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-7-230x50.png 230w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-7-350x77.png 350w, https://pharmacelera.com/wp-content/uploads/2022/05/Figure-7-480x105.png 480w" sizes="(max-width: 1024px) 100vw, 1024px" />											<figcaption class="widget-image-caption wp-caption-text">Figure 7</figcaption>
										</figure>
									</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-0838091 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="0838091" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ddd22ea" data-id="ddd22ea" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-765a2e9 elementor-widget elementor-widget-text-editor" data-id="765a2e9" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>I hope this post has raised your interest in genetic algorithms and genetic programming and you will be eager to further read on this topic. Stay tuned for future Artificial Intelligence and Artificial Intelligence for Drug Discovery posts.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-d139ef8 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="d139ef8" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-04c9ed0" data-id="04c9ed0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-683d677 elementor-widget elementor-widget-text-editor" data-id="683d677" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Want to learn more about how Pharmacelera can help you? <strong><a href="https://new.pharmacelera.com/#contact">Contact us</a></strong> and a member of our team will contact you to evaluate your project and how we can assist you with our technologies and services.</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>The post <a href="https://pharmacelera.com/blog/science/genetic-algorithms/">How Genetic Algorithms work?</a> appeared first on <a href="https://pharmacelera.com">Pharmacelera | Pushing the limits of computational chemistry</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
