Comments (2)
Hi, thanks for feedback!
Regarding your question, few approaches possible:
-
use
order
feature on pragmatic format which specifies order of the job tasks in the tour:
order
property info: https://reinterpretcat.github.io/vrp/concepts/pragmatic/problem/jobs.html#tasks
tour-order
objective info: https://reinterpretcat.github.io/vrp/concepts/pragmatic/problem/objectives.html#scalar-objectivesWith this approach, you put different order on different job tasks depending on their demand (massive demand gets lower order meaning serving earlier in the tour). You can control your objective function preferences using
objectives
property on the problem definition -
implement a new constraint/objective pair specifically for you use case. This would require some coding, example of such logic can be
order
feature: https://github.com/reinterpretcat/vrp/blob/master/vrp-core/src/solver/objectives/tour_order.rs -
add a new post processing step. Pre/post processing api is defined here: https://github.com/reinterpretcat/vrp/blob/master/vrp-core/src/solver/processing/mod.rs
Please note, that my focus was mostly on exposing solver functionality through pragmatic format, so there might be some disparities in programming api in contrast to json format usage.
from vrp.
Thank you for the quick reply and the tips!
from vrp.
Related Issues (20)
- cannot find objective idx where solution values are different HOT 1
- Violation on optional break window HOT 3
- Associate Cost to Waiting Time HOT 17
- capacity constraints HOT 1
- Option to provide custom costs matrix HOT 4
- No solutions when using orders or skills HOT 3
- fleet.vehicles.limits.maxDuration is driving duration or total? HOT 2
- RepeatableRandom displaying non-repeatable results HOT 1
- VRP does not respond, ignores SIGINT and max-time HOT 5
- Infeasible solution
- Why cannot set time and duration costs to zeros? HOT 3
- Thread 'main' panicked - intermittent error HOT 1
- Error - called `Option::unwrap()` on a `None` value HOT 6
- Pip wheels for python 3.11 HOT 1
- Custom conditions for jobs/fleet definition HOT 6
- Index out of Bounds in Fast Service Objective HOT 3
- Unexpected behavior of required breaks with time aware matrices
- The model provide different results HOT 1
- Examples for time dependent routing
- Parameter for visiting same location multiple times across shifts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vrp.