Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVRPTW & basic Skill-VRP #120

Merged
merged 98 commits into from
Mar 1, 2024
Merged

CVRPTW & basic Skill-VRP #120

merged 98 commits into from
Mar 1, 2024

Conversation

ngastzepeda
Copy link
Contributor

Description

Implemented an environment for CVRPTW (Capacitated vehicle routing problem with time windows) based on the CVRP environment, extended by time windows and keeping track of the current time. Also included a basic implementation of the Skill-VRP where all technicians have the same skill, but different skill levels. Each customer node needs to be serviced by one technician, where the technician's skill-level must be >= the required skill-level at the customer node.

Motivation and Context

The motivation is to extend the range of environments included in rl4co.

Types of changes

What types of changes does your code introduce? Remove all that do not apply:

  • New feature (non-breaking change which adds core functionality)
  • Documentation (update in the documentation)

Checklist

Go over all the following points, and put an x in all the boxes that apply.
If you are unsure about any of these, don't hesitate to ask. We are here to help!

  • My change requires a change to the documentation.
  • I have updated the tests accordingly (required for a bug fix or a new feature).
  • I have updated the documentation accordingly.

ngastzepeda and others added 30 commits November 24, 2023 23:01
…e > new current_time) and the time is reset to 0 when at the depot. Render function.
…_from_solomon() to load Solomon instances into rl4co and verify own solutions against them.
…leading to errors for batch_size=1. (May have to adjust code in general, not just CVRPTW!!)
… to know whether the rollout actually finished or was just ended early
…e time span within which a service has to be *started*
Update to lates changes on rl4co/main
@ngastzepeda ngastzepeda self-assigned this Feb 28, 2024
@ngastzepeda ngastzepeda requested a review from fedebotu February 28, 2024 16:56
Copy link
Member

@fedebotu fedebotu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome job! I left some mostly minor comments here and there. Other than that, I think ready to commit!

data/solomon/solutions/C101.sol Outdated Show resolved Hide resolved
rl4co/data/utils.py Show resolved Hide resolved
data/solomon/instances/C101.txt Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
rl4co/envs/routing/svrp.py Outdated Show resolved Hide resolved
@ngastzepeda ngastzepeda merged commit 2b8bcb9 into ai4co:main Mar 1, 2024
12 checks passed
@ngastzepeda ngastzepeda deleted the cvrptw-skillvrp branch March 1, 2024 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants