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

too slow #9

Open
motad333 opened this issue Feb 28, 2024 · 1 comment
Open

too slow #9

motad333 opened this issue Feb 28, 2024 · 1 comment
Assignees
Labels
help wanted Extra attention is needed

Comments

@motad333
Copy link

motad333 commented Feb 28, 2024

hi
thanks alot for this bot , It is very creative
i set conditions for daily fantacy sbc and add multiple account data to solver
but it's get too long time to reponse and sometimes not solve and break wall time
this is conditions
Clubs: Min 5
Same League Count: Min 4
Same Nation Count: Max 3
Rare: Min 3
Squad Rating: Min 78
Squad Total Chemistry Points: Min 26
of players in the Squad: 11
some of my accounts have more than 900 player but solver break the searching time
so i tested with input.csv but it's also break searching time
how can make it faster? how can i find problem?

@Regista6
Copy link
Owner

Regista6 commented Feb 28, 2024

Hello,

Thanks so much for using the solver 🙏

Can you send your 900 players club squad? I can do some testing.

Considering alternate positions, 900 players actually becomes ~2700. Currently time limit is 600 seconds, I thought that should be more than enough ... 10 mins is already a lot.

One thing you can do is uncomment the following line in main.py since there is a constraint on squad_rating.

# Note: The filter on rating is especially useful when there is only a single constraint like Squad Rating: Min XX.
# Otherwise, the search space is too large and this overwhelms the solver (very slow in improving the bound).
# df = df[(df["Rating"] >= input.SQUAD_RATING - 3) & (df["Rating"] <= input.SQUAD_RATING + 3)]

Edit 1: I ran the sbc on Frederik FC_24.csv which has 861 players with formation 4-4-2. The solver gives me a solution almost instantly and the solution improves rapidly!

@Regista6 Regista6 self-assigned this Feb 29, 2024
@Regista6 Regista6 added the help wanted Extra attention is needed label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants