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

Sometimes AlgorithmSearchProgressChartListener generates an empty chart #91

Closed
agausachs opened this issue Apr 10, 2014 · 1 comment
Closed
Labels

Comments

@agausachs
Copy link

progress

Maybe, as Stefan comments, happens when the initial solution is already the best solution.

@jsprit jsprit added the bug label Apr 10, 2014
jsprit pushed a commit that referenced this issue Apr 10, 2014
analysis.toolbox.AlgorithmSearchProgressChartListener.java
@jsprit
Copy link
Contributor

jsprit commented Apr 10, 2014

The analysis.toolbox.AlgorithmSearchProgressChartListener.class collects in every iteration of the algorithm the best, the worst and the average solution (if there is only one solution at the end of each iteration, best=worst=average). If no solution can be found being better than the initial solution, for each iteration i best[i]=worst[i]=average[i]=initialSolution.getCosts(). When the chart-plotter scales its plot then the yAxis range is determined by minValue of all worst solutions and the maxValue of all best solutions. Since all values are equal, range.minValue = range.maxValue and thus the range is empty or there is no RANGE. Therefore, analysis.toolbox.AlgorithmSearchProgressChartListener.class creates empty charts if initial solution is already the "best" solution.

Fixed it by defining a yAxis.range if range.maxValue = range.minValue.

@jsprit jsprit closed this as completed Apr 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant