-
Notifications
You must be signed in to change notification settings - Fork 156
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
Multiple secondary bringback stacks #280
Comments
You can pass as many stacks as you want: |
Fanduel, havent tried Draftkings. lineups = optimizer.optimize(n=2) heres my output:
Fantasy Points 268.08
while it is forcing a bringback(it might not be forcing, just optimal) In these 2 examples i would assume i should get wrs from opposing Wrs or Qbs. |
This rule doesn't work for you because you set them after calling optimize method and lineups generator doesn't apply this rule for the current run you should move it to the end.
Also you call restrict_positions_for_same_team twice and the second call will override the previous, so you should set up all in one call: |
thanks @DimaKudosh will try this when i get home. Didnt catch that i had that restrict twice. |
Is it possible to set max_exposure on optimizer.force_positions_for_opposing_team(('QB', 'WR'))? thanks |
my suggestion would be to just to run optimizer more than once. First run, with whatever pct you wanted for this. 50 %....run it 5 times if you want a total of 10 lineups. 2nd run just comment it out for another 5 lineups for 5/10. |
how would u force a secondary game stack, i see the force opposing qb/wr rule, but what if u want something other than that rule, like wr/wr, or rb/wr, wr/te qb/rb scenario. It only allows for one,
The text was updated successfully, but these errors were encountered: