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

Code consultation #2

Open
Aceyli opened this issue Jul 20, 2021 · 12 comments
Open

Code consultation #2

Aceyli opened this issue Jul 20, 2021 · 12 comments

Comments

@Aceyli
Copy link

Aceyli commented Jul 20, 2021

How to output the success rate by running "driver.cpp" file?

@Jiaoyang-Li
Copy link
Owner

By using "-o test.csv", the program will output results on each instance to file test.csv. You can then easily compute success rates based on the runtime or solution costs in the test.csv.

@Aceyli
Copy link
Author

Aceyli commented Jul 25, 2021 via email

@Jiaoyang-Li
Copy link
Owner

If an instance was solved successfully, the runtime would be smaller than your runtime limit and the solution cost would be positive. So you just need to count the number of instances that were solved successfully and then divide it by the total number of instances that you have tested.

@Aceyli
Copy link
Author

Aceyli commented Jul 26, 2021 via email

@Jiaoyang-Li
Copy link
Owner

Since each run of the eecbs program only runs EECBS on one instance and generates one line in test.csv, test.csv does not directly provide the numbers of successful and total instances. But these two numbers can be easily counted via a simple script (or even Excel)

@Aceyli
Copy link
Author

Aceyli commented Nov 18, 2021 via email

@Jiaoyang-Li
Copy link
Owner

Jiaoyang-Li commented Nov 25, 2021 via email

@vinayaktiwari
Copy link

Hi Jiaoyang
I am unable to figure out what each of the columns represents for the "scenario" input file
can you provide me an explanation please.

@Jiaoyang-Li
Copy link
Owner

The explanation is on the MAPF benchmark website: https://movingai.com/benchmarks/formats.html

@vinayaktiwari
Copy link

vinayaktiwari commented Feb 25, 2022 via email

@Jiaoyang-Li
Copy link
Owner

The input command specifies the number of agents by k. Then we only take the first k rows in the scen file as the start and goal locations of the agents. So if you set k=50 in the input command, you will only get paths of 50 agents in the output files.

@vinayaktiwari
Copy link

Hi Jiaoyang,
actually when i ran your eecbs code, without any scenerio file as input, it threw a randomly generated start and goals, my question is which part of c++ code is doing this thing...?
can we change it in manner like by keeping starts points randomly generated but goals decided by us?
if yes then can you guide a little how?

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

No branches or pull requests

3 participants