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

Small improvement in the way the helpSolution is retrieved in SupervisedLearnedHeuristic #228

Merged
merged 2 commits into from
May 10, 2022

Conversation

gostreap
Copy link
Collaborator

Small pull request to take into account the remarks of @3rdCore which had not been taken into account before merging #223.

@gostreap gostreap requested a review from 3rdCore May 10, 2022 16:32
@gostreap gostreap added enhancement New feature or request heuristic labels May 10, 2022
@@ -66,10 +66,9 @@ function (valueSelection::SupervisedLearnedHeuristic)(::Type{InitializingPhase},
if !isnothing(model_duplicate.statistics.solutions)
solutions = model_duplicate.statistics.solutions[model_duplicate.statistics.solutions.!=nothing]
if length(solutions) >= 1
valueSelection.helpSolution = solutions[1]
valueSelection.helpSolution = last(solutions) # the last solution is at least as good as the previous ones
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@gostreap gostreap merged commit e9b3614 into master May 10, 2022
@gostreap gostreap deleted the tristan/imitation branch May 10, 2022 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request heuristic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants