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
Question about quantities/capacities
This forum deals with any kind of trip optimization based on xTour1, xTour2 and the Developer APIs "RouteOptimization" and "SequenceOptimization". No matter whether it is automatic planning or manual dispatching, refering to transport orders or service planning.
Attention: this does not refer to PTV Optiflow SaaS and PTV Developer RouteOptimization Optiflow.
Attention: this does not refer to PTV Optiflow SaaS and PTV Developer RouteOptimization Optiflow.
Return to “PTV xTourServer / DEV.RouteOptimization / DEV.SequenceOptimization”
Jump to
- Optiflow
- ↳ Generic questions
- ↳ Developer.Route Optimization-Optiflow API
- Product: PTV xServer
- ↳ PTV xServer INFOSTREAM
- ↳ PTV xClusterServer
- ↳ PTV xDataServer
- ↳ PTV xDimaServer / Developer Matrix Routing API
- ↳ PTV xIntermodalServer (R&D) (Admin=FK)
- ↳ PTV xLoadServer / Loading Space Optimization API
- ↳ PTV xLocateServer / Developer: Geocoding and Places
- ↳ PTV xMapmatchServer (admin=JCL), PTV Developer MapMatching API
- ↳ PTV xMapServer / Dev.RasterMaps API
- ↳ PTV xRouteServer / DEV.Routing API
- ↳ PTV xTourServer / DEV.RouteOptimization / DEV.SequenceOptimization
- ↳ PTV xServer.NET (Admin=OH)
- ↳ PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=BWE)
- ↳ PTV Drive&Arrive (admin=HUB)
- ↳ PTV Navigator SDK (Admin=SchS)
- ↳ Generic questions
- ↳ Data and content
- PTV Developer
- ↳ Routing API
- ↳ Vector Maps API
- ↳ PTV EV Truck Route Planner