-
Notifications
You must be signed in to change notification settings - Fork 19
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
Statistics on solver #16
Comments
Do Note that you'll need to store the data somewhere - or print it to stdout. On one hand I want to rewrite the LKH source code to have easy FFI to Python, but on the other hand the original author releases new updates so every change will require days worth of work. |
@fikisipi Thank you very much for your answer! I tried what you have suggested but got this error: Do you know what could be the problem? Or is it not the best approach for this? Thanks again. |
@fikisipi Hello again! I've been working on this repository for a couple of days and I think I have figured out how to return statistics on how the value of I made returning history as an optional argument in the function
|
@sn0rkmaiden Thank you, that's awesome. I'll take a look and expose it through the FFI. |
Hello, I am researching LKH algorithm and trying to compare it to other methods of solving TSP (I am interested in asymmetric case). For this I would like to collect some information of how the cost of the final tour has been changing throughout the run. I have found some methods that collect statistics in
LKH-3.0.8
folder inStatistics.c
file. I forked the repo and tried returning the statistics I need fromLKHmain.c
file. However, I was not able to install the changed version of repository to try it out. I tried running:!pip install git+https://github.com/sn0rkmaiden/elkai.git
after installing the original package but nothing seems to have changed.
Could you please advise what would be the correct way of doing something like this? Thanks in advance.
The text was updated successfully, but these errors were encountered: