Capacitated vehicle routing problem in FlexSim

Capacitated vehicle routing problem in FlexSim

sudheer_r
Not applicable
1,585 Views
9 Replies
Message 1 of 10

Capacitated vehicle routing problem in FlexSim

sudheer_r
Not applicable

[ FlexSim 21.1.3 ]

Can we use FlexSim to solve Capacitated vehicle routing problem.

For example 50 locations where orders requests are coming and we have 5 storage places from where delivery is planned.

Output should be number of trucks and their routes.

Optquest is the one which first got in to my mind. Just checking any one who already had implemented in FlexSim.

Or FlexSim is not the one we need to use for Capacitated vehicle routing problems?

0 Likes
Accepted solutions (1)
1,586 Views
9 Replies
Replies (9)
Message 2 of 10

JordanLJohnson
Autodesk
Autodesk
Accepted solution

I think you could use the optimizer for this. I would build a model where you can use a parameter to adjust the number of trucks, and where you can use another parameter to adjust the sequence that orders are loaded on to trucks. As far as the route goes, the truck just delivers each item in order. In a good sequence, the truck will stop at each location once.

The objective would probably be something like "minimize delivery time". But you also want to minimize the number of trucks you use. So you'll want to use two objectives, and look at the tradeoff between how long the delivery takes, and how many trucks you use. I'm assuming you want less than 50 trucks.

.


Jordan Johnson
Principal Software Engineer
>

Message 3 of 10

ryan_c10
Not applicable

Hi @sudheer.r, was Jordan Johnson's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes
Message 4 of 10

sudheer_r
Not applicable
@Jordan Johnson very small model helpful to see how we can use optquest for this kind of problems?
0 Likes
Message 5 of 10

JordanLJohnson
Autodesk
Autodesk

Here is a related example:

SequenceOptimizationDemo.fsm

It shows how to use a sequence parameter to sequence the work in this model. In your case, instead of feeding the jobs onto machines, you would load them in trucks. Then the trucks would look at each loaded item, travel to its destination, and unload it. You can just replace "Processing" and item with "Delivering" an item.

.


Jordan Johnson
Principal Software Engineer
>

Message 6 of 10

sudheer_r
Not applicable

@Jordan Johnson I was going through the model

below user command is throwing up error

setUpExperimenterOptimizerVariables


1631727989977.png

0 Likes
Message 7 of 10

JordanLJohnson
Autodesk
Autodesk

Sorry, I uploaded an old version. Here's a better one:

SequenceOptimizationDemo.fsm

.


Jordan Johnson
Principal Software Engineer
>

0 Likes
Message 8 of 10

melissa_f2
Not applicable

hello @Jordan Johnson

I'm having trouble moving forward on a project that I want to simulate on flexim. (I have 5 cities and a warehouse and two 10-ton trucks. Each of the cities has different demands. I would like to simulate this vehicle routing problem in order to optimize transport time and costs). Could you please help me.capture-decran-2022-03-26-133850.png

0 Likes
Message 9 of 10

JordanLJohnson
Autodesk
Autodesk

Hi @Melissa F2 ,

This sounds like a good question. However, it is currently posted as an answer to a previous question. I am working on the answer to your question. However, it would be helpful if you could post this as a new Question. That will make it easier for other people to find the question, as well as the answer.

.


Jordan Johnson
Principal Software Engineer
>

Message 10 of 10

melissa_f2
Not applicable

Thanks you for your answer @Jordan Johnson. I agree with you and i am going to repost my question correctly.