-
Notifications
You must be signed in to change notification settings - Fork 90
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
Feat : MultiCVRP wrapper #1043
Feat : MultiCVRP wrapper #1043
Conversation
…to feat--multiCVRP-wrapper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good start! Big thing, make sure you use the MultiAgentWrapper
Base class to avoid duplicating too much code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty great to me! Just gotta wait for the global state PR to go in so we can get rid of the hasattr
s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM to me also tested locally and seems to be running well!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Louay-Ben-nessir! 🔥 Just a few question and suggestions from my side.
…n-nessir/Mava into feat--multiCVRP-wrapper
mava/wrappers/jumanji.py
Outdated
|
||
def __init__(self, env: MultiCVRP, add_global_state: bool = False): | ||
env.num_agents = env._num_vehicles | ||
env.time_limit = env._num_customers + 1 # added for consistency |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since I'm not very familiar with MultiCVRP 😅, I wanted to ask if the time_limit is only controlled in this way or if it can be set manually like in other environments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jumanji's Multicvrp doesn't offer a way to manually set the time_limit
. I changed it to None to better indicate this.
This PR has been closed as it requires extensive maintenance and testing before merging. Therefore, we have created an issue to track and address this! |
What?
adds a wrapper for multicvrp.
Why?
To make mulctivcrp mava compatible.
How?
This wrapper takes in the output from the multicvrp environment and converts it into a Mava suitable input.