-
Notifications
You must be signed in to change notification settings - Fork 83
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
Sporadic "squad is incomplete" errors in optimisation #469
Comments
In the loop below, if we fail to find a valid replacement player then AIrsenal/airsenal/framework/optimization_transfers.py Lines 61 to 72 in 359ebbc
Though it seems unlikely that we wouldn't find a single valid player to replace someone with (perhaps if the original player is the cheapest available in that position). |
Failing to replace the cheapest available player does seem to be the problem in this case - the original squad contains Tsimikas, currently the cheapest player in the game at £3.7m and so can't be replaced unless the squad has money in the bank. |
…mplete [#469] Avoid squad incomplete errors if no valid replacement found
Happened near the end of the optimisation in the last gameweek (and then causes optimisation to hang as at least one of the strategies didn't create an output file). Not sure of the cause but has come up before. Perhaps either:
best_squad undefined
).Squad
class - I think I remember seeing this error before and just the process of investigating it (without making changes apart from print statements etc.) seemed to fix it...The text was updated successfully, but these errors were encountered: