Question about quantities/capacities

This forum deals with any kind of trip optimization whether it is automatic planning or manual dispatching, refering to transport orders or service planning.
Post Reply
log-konz
Posts: 20
Joined: Mon Mar 23, 2015 9:06 am

Question about quantities/capacities

Post by log-konz »

Hello PTV-Team,

I am trying for some time to make an optimization with quantities/capacities .

In the documentation I have read that I can give the vehicle a maximum capacity .
This is how it looks in my Code:

:$type=>"Vehicle",
:capacities => { :capacities => [ { :quantities =>[9] } ] }, // Here for example 9
:isPreloaded=>false,
.....


and for my orders:

transportOrders = []
q = {}
q[:deliveryQuantities] = { :quantities =>[ var_x ] }, // something between 0-3
q[:pickupQuantities] = { :quantities =>[ var_y ] }, // something between 0-3
.....
transportOrders << q
.....

and I have a depot if the vehicle is full.


Without the lines (deliveryQuantities/pickupQuantities) it works fine.
Perhaps I have overlooked something .


I hope you can help me.

kind regards
Post Reply