Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the following x and y coordinates of the locations, where the depot is located at ( 1 5 , 1 5 ) : x

Given the following x and y coordinates of the locations, where the depot is located at (15,15):
x=[15612151791112165169]
y=[15181612526371109]
a)[5 points] Draw a plot of the locations using the matplotlib.pyplot package and show the "depot" in red color.
b)[5 points] Get the distance matrix using RECTANGULAR distance measure.
c)[10 points] Solve the Travelling Salesman Problem using the pulp package for optimization.
d)[5 points]) Draw a plot of the optimal route using the matplotlib.pyplot package. Also type the optimal objective function value as a ##comment## in the textbox below.
Note that (\( x \)) and (\( y \)) coordinates are already provided in the textbox below.
You should answer this question by:
1) WRITING YOUR CODE IN THE INPUT BOX PROVIDED.
2) SOLVE YOUR PROBLEM in GOOGLE COLAB or JUPYTERLAB. You should PRINT YOUR code and ITS OUTPUT as a .PDF file and ATTACH this file below the INPUT box. THIS IS MANDATORY TO SUBMIT, otherwise you will receive zero marks for any question without a file upload.
3) NO .PDF file =0 marks for this question.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions