Answered step by step
Verified Expert Solution
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 :
x
y
a points Draw a plot of the locations using the matplotlib.pyplot package and show the "depot" in red color.
b points Get the distance matrix using RECTANGULAR distance measure.
c points Solve the Travelling Salesman Problem using the pulp package for optimization.
d 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:
WRITING YOUR CODE IN THE INPUT BOX PROVIDED.
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.
NO PDF file marks for this question.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started