Skip to content

SDVRP env: Why is the masking for the current loc not needed?? #217

Answered by ShuN6211
ShuN6211 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @fedebotu! Thanks for answering!! I feel we need more discussion on the topic!

(1) you are already at the depot (which has index 0) and (2) there are still unvisited node that you can visit outside of it

I understand this point. 👌 My concern is about the locs rather than the depot.

mask_loc = (td["demand_with_depot"][..., 1:] == 0) | ( 
         td["used_capacity"] >= td["vehicle_capacity"] 
     ) 

In my understanding, this means "you can go to the loc that still haves unfilled demand, but if remaining vehicle capacity is empty, you can't go to any of locs " ...Oh, I understand the things during editing this message!!
I suspected the constructive policy(Decoding strategy's step) may…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ShuN6211
Comment options

Answer selected by fedebotu
@fedebotu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants