You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
-
$\begingroup$ +1 for suggesting clustering. This approach is generally called cluster-first route-second. It would be great if you could add more details to improve your answer. For example, mentioning $k$-means clustering (or any other clustering approach that you would consider) as well as the related R packages in your answer would be helpful to the OP (original poster). $\endgroup$rasul– rasul2021-08-05 22:07:24 +00:00Commented Aug 5, 2021 at 22:07
-
$\begingroup$ Hi! Thanks for the help. Yes, I tried Clustering. Specially K-means. I got the idea from the cluster first route second approach as @r.beigi suggested. The problem I have is the clusters have demand which varies a lot and it is very right-skewed. Like this: imgur.com/7qyTPrb $\endgroup$Shibaprasad– Shibaprasad2021-08-06 05:24:21 +00:00Commented Aug 6, 2021 at 5:24
-
1$\begingroup$ @stat_shib What is the number of clusters? the size of each cluster (how many demand points in each cluster)? the total demand in each cluster? the number of vehicles of each type? the capacity of each vehicle? the vector for each demand point that is used for clustering, i.e., is it just the $x$,$y$ coordinates, or it includes other features too (don't forget feature scaling if the latter is the case)? $\endgroup$rasul– rasul2021-08-06 07:24:05 +00:00Commented Aug 6, 2021 at 7:24
-
$\begingroup$ @stat_shib You should try various heuristics based on the answers to the questions above and choose the one that works best in your special case. For example, you could set the number of clusters to the number of vehicles you have! IF you are lucky, i.e., a feasible allocation of vehicles to the clusters exist, then this simply leads to a solution (you just need to solve a TSP for each cluster)! $\endgroup$rasul– rasul2021-08-06 07:27:31 +00:00Commented Aug 6, 2021 at 7:27
-
$\begingroup$ @r.beigi I did K-means with 200 clusters. The size and total demand of each cluster are different because the clustering is only done based on their longitude and latitude. Probably I will need to add more constraints like the total demand of each cluster with some constrained clustering. Probably you're right. I can do that and it can be a good starting solution I think. $\endgroup$Shibaprasad– Shibaprasad2021-08-06 09:03:21 +00:00Commented Aug 6, 2021 at 9:03
Add a comment
|
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
- MathJax equations
$\sin^2 \theta$
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. mixed-integer-programming), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-r