Page 1 of 1

Question about quantities/capacities

Posted: Wed May 11, 2016 7:46 am
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