Create an initial population of p chromosomes

Assignment Help Engineering Mathematics
Reference no: EM132138066

(1) This problem concerns of the proof of the NP-completeness of 300L

a) Convert the formula F into a 300L graph
b) Find a solution for the 300L instance of F and verify that it is a solution for F

F = (Z1 V Z2) ^ (z1 V z2 V z3 V z4)

(2)

The Traveling Salesman Problem (TSP) is one which has commanded much attention in Artificial Intelligence because it is so easy to describe and so difficult to solve. The problem can simply be stated as: if a traveling salesman vvishes to visit exactly once each of a list m cities (where the cost of traveling from city i to city j is co) and then return to the home city, what is the least costly route the traveling salesman can take.

The importance of the TSP is that it is representative of a larger class of problems known as combinatorial optimization problems. The TSP problem belongs in the class of combinatorial optimization problems known as NIP-hard. Today. no one has found a polynomial-time algorithm for the TSP.

A Simple Genetic Algorithm

A simple genetic algorithm can be defined in the following 9 steps:

Step 1: create an initial population of P chromosomes (generation 0)

Step 2: evaluate the fitness of each chromosome

Step 3: Select P parents from the current population via proportional selection (i.e.. the selection probability is proportional to the fitness).

Step 4: choose at random a pair of parents for mating. Exchange bit strings with a crossover operation to create two offspring (e.g., one-point crossover)

Step 5: process each offprint by the mutation operation, and insert the resulting offspring in the new population

Step 6: repeat steps 4 and 5 until all parents are selected and mated (P offspring are created)

Step 7: replace the old population of chromosomes in the new population Step 8: evaluate the fitness of each chromosome in the new population

Step 9: go back to step 3 if the number of generations is less than some upper bound. Otherwise, the final result is the best chromosome created during the search.

Selection Probability:

The parent chromosomes are selected for mating via proportional selection. also known as roulette wheel selection'. It is defined as follows:
'1) Sum up the fitness values of all chromosomes in the population
2) Generate a random number between 0 and the sum of the fitness values
3) Select the first chromosome whose fitness value added to the sum of the fitness values of the previous chromosomes is greater than or equal to the random number

Initial population
In addition to the crossover and mutation operators you will also evaluate the impact of the GAs with the following initial populations:
- Randomly generated population
- Nearest neighbor insertion
Crossover and mutation operators
Write a program that solves the TSP using Genetic Algorithms. Explain and implement the following crossover & mutation operators:
- Uniform order-based crossover
- Cycle Crossover (CX)
- Reciprocal exchange mutation
- Scramble Mutation

Output:
1. Solution
2. Implementation of Genetic algorithms with the above mentioned crossover and mutation operations
3. A basic evaluation that should describe the following two basic configurations:

Configuration

initial Solution

Crossover

Mutation

Selection

1

Random

Uniform
Crossover

Reciprocal
Exchange

Random
Selection

2

Random

Cycle
Crossover

Scramble
Mutation

Random
Selection

Population size = 100 Mutation rate = 0.1

Extensive evaluation of the GA, i.e., initial population, crossover & mutation operators. Extensively evaluate the following combination of operations investigate the impact of varying the population, size, explore different mutation rates, and evaluate the impact of your GA with and without elite survival.

Configuration

Initial
Solution

Crossover

Mutation

Selection

3

Random

Uniform
Crossover

Reciprocal
Exchange

Roulette Wheel

4

Random

Cycle
Crossover

Reciprocal
Exchange

Roulette Wheel

5

Random

Cycle
Crossover

Scramble
Mutation

Roulette Wheel

6

Random

Uniform
Crossover

Scramble
Mutation

Best and
Second best
candidates

Provide a comprehensive description of the algorithms and an extensive evaluation of the results. It should describe the experimental design, what experiments are and what they are intended to show.

Use tables and figures where appropriate.

Assess the overall performance of your optimization algorithms for solving the travelling salesman problem. Typically, to evaluate the performance of your algorithm for a single configuration you would run your algorithm multiple times (at least 5 times in this project with at least 1000 iterations per execution) and record the best fitness for all runs. You can then report the mean and median fitness across all runs. Your results should show that you have considered the suggested operators (e.g., crossover, mutation and selection).

(nb: problem instances will be provided) Deliverable:
- Source code in python
- Any instructions for executing source
- A sample file that describes the test run on the program
- Descriptions and documentation

Verified Expert

The travelling salesman problem (TSP) asks the following question: "Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city and returns to the origin city?" It is an NP-hard problem in combinatorial optimization, important in operations research and theoretical computer science

Reference no: EM132138066

Questions Cloud

Create an application that allow the user to create entities : Create an application that allows the user to create entities with a dialog window that will be displayed by a ListView in a separate dialog.
What are some of other important factors that need to be : What are some of other important factors that need to be seriously considered when the cloud computing and service company.
What is a subroutine : What is a subroutine and how to improve the assembly code? What are the different components of a subroutine, how they work?
Culture-specific information about your own culture articles : Culture-specific information about your own culture Articles about a tradition, value, or belief of your culture
Create an initial population of p chromosomes : create an initial population of P chromosomes - evaluate the fitness of each chromosome - Select P parents from the current population via proportional
Perform a research to validate the effectiveness of momentum : Perform a research to validate the effectiveness of momentum and contrarian strategies in US stock market.
What is the decision for a two : Given the following values: = 20, M = 16, = 0.7, conduct a one-sample z test at a .05 level of significance. What is the decision for a two-tailed test?
Use to sample participants : A researcher selects from a participant pool of 8 males and 11 females. He determines that the probability of selecting 2 female participants
How your choice of strategy will affect the ability : Base your strategy on an analysis of these different user groups and evaluate how they are best reached and why these methods are ideal.

Reviews

urv2138066

11/21/2018 10:32:36 PM

Very happy with this assignment It has met my requirements. I would highly recommend this service. Five out of five. The quality, timeliness and price of ExpertsMind cannot be matched. Thanks for understanding my task and to do it in a very well manner. It is really good to approach the experts like this one. he prepared very well after clearing the doubts.

Write a Review

 

Engineering Mathematics Questions & Answers

  How much will the given contract be worth

Suppose we have a forward contract with one year expiry with the additional property that either party can cancel the contract after six months. How much will this contract be worth?

  Problem on-advertising campaign for the product

A company plans to phase out one model of its product and replace it with a new model. An advertising campaign for the product being replaced just ended.

  Write paper about the nicholson-bailey model

Think about the Nicholson-Bailey Model. Write a 1-2 page paper (no more than 2) discussing the following. The parasitoid-host relationship and why Nicholson and Baley modeled it and The model (including assumptions, variables, parameters)

  Find probability for the following expoential distribution

Melissa and Priscilla opened a small dress store in a mall. During the first few weeks, business was slow, with the store averaging only 3 customers per hour in the morning (lambda). Assume that the random arrival of customers is Poisson distribut..

  What fits the data better model 1 or model 2

(a) Plot In (L1 (x1, x2)) over the region x1, X2 ∈ [-5, 5]. The model's degeneracy will show up as lines in the x1-x2 plane where the value of ln ζ1 does not change - What fits the data better, model 1 or model 2?

  Estimate your expected exam score

Choose a course that you are currently taking in which the final exam is worth 100 points. Treating your score on the exam as if it were a continuous uncertain.

  Determine the cost basis of the three cells

A manufacturer of aerospace products purchased three flexible assembly cells for $500,000 each. Delivery and insurance charges were $35,000, and installation.

  Explain meaning-term blocking as used in steel construction

Identify the maximum fabrication tolerance of a steel column in terms of depth, width, length and squareness.

  What realistic disturbances would the motorcycle encounter

The task is to develop a robot-controlled motorcycle for operation on the moon. Develop a feedback controller to operate the motorcycle on the moon using a feedback controller structure of your choosing. What realistic disturbances would the motorc..

  Explain about natural growth model

How long will it take before it is considered dangerous to live in this mountain valley - atmospheric pollutants in a certain mountain valley grown according to a natural growth model

  What is the npv of expansion

A company is planning to open 100 new outlets that are expected to generate, in total, $15 million in free cash flows per year, with a growth rate of 3% in perpetuity. If the company's WACC is 10%, what is the NPV of this expansion?

  Semi-annual coupon interest payments

A three-year bond has 8.0% coupon rate and face value of $1000. If the yield to maturity (YTM) on the bond is 10%, calculate the price of the bond assuming that the bond makes semi-annual coupon interest payments

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd