Skip to content

NFL FD: Try adjusting your query by taking away constraints #198

@rickenrocker24

Description

@rickenrocker24

Running into No Solution found on the output when I use the below usage - what am I missing?

from os import environ
from draftfast import rules
from draftfast.optimize import run_multi
from draftfast.csv_parse import salary_download, uploaders

players = salary_download.generate_players_from_csvs(
salary_file_location='./NFL_SALS.csv',
projection_file_location='./NFL_PROJECTIONS.csv',
game=rules.FAN_DUEL,)

rosters, _ = run_multi(
iterations=3,
rule_set=rules.FD_NFL_RULE_SET,
player_pool=players,
verbose=True
)

Output:

_No solution found.
Try adjusting your query by taking away constraints.

OPTIMIZER CONSTRAINTS:

Min teams: 2

LINEUP CONSTRAINTS:

None

PLAYER POOL SETTINGS:

None

PLAYER COUNT: 1602_

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions