-
Notifications
You must be signed in to change notification settings - Fork 9
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
UNKNOWN: Simple Input #7
Comments
@Regista6 Actually I got it working, but its not optimizing
|
Hi, Can you send your
Edit: I think you have mistakenly set |
@Regista6 I am trying it on Trailblazers Challenge 5: input.py: https://gist.github.com/RocketNinja15/2a048dcd18ee40484099b343db825cd8 optimize.py: https://gist.github.com/RocketNinja15/fcf3d3d12d8d89b9612d7a68178fedde Requirements: Current output:
Here is my club file: |
# input.py
FORMATION = "4-3-3[5]"
NUM_PLAYERS = 11
FIX_PLAYERS = 0 # FIX_PLAYERS = 1 => players will be picked based on the formation and 0 otherwise.
# Set only one of the below to True and the other to False. Both can't be False.
USE_PREFERRED_POSITION = False
USE_ALTERNATE_POSITIONS = True
# Set only one of the below to True and the others to False if duplicates are to be prioritized.
USE_ALL_DUPLICATES = False
USE_AT_LEAST_HALF_DUPLICATES = False
USE_AT_LEAST_ONE_DUPLICATE = False
NUM_UNIQUE_LEAGUE = [4, "Min"] # Leagues: Max / Min / Exactly X (Min. Leagues in Squad: 4)
MIN_NUM_COUNTRY = 3 # Same Nation Count: Min X (Min. 3 Players from the same Nation)
MIN_NUM_CLUB = 2 # Same Club Count: Min X (Min. 2 Players from the same Club)
RARITY_2 = ["Rare"] # (Min. 9 Players: Rare)
NUM_RARITY_2 = [9] # Total players from i^th Rarity >= NUM_RARITY_2[i]
SQUAD_RATING = 80 # Squad Rating: Min XX
CHEMISTRY = 31 # Squad Total Chemistry Points: Min X
# optimize.py (These constraints should be enabled) (L530-566)
model = create_min_club_constraint(df, model, player, map_idx, players_grouped, num_cnts)
model = create_unique_league_constraint(df, model, player, league, map_idx, players_grouped, num_cnts)
model = create_min_country_constraint(df, model, player, map_idx, players_grouped, num_cnts)
model = create_rarity_2_constraint(df, model, player, map_idx, players_grouped, num_cnts)
model = create_squad_rating_constraint_3(df, model, player, map_idx, players_grouped, num_cnts) # This is what I get with default main.py and your club!
FEASIBLE: A feasible solution has been found. But the search was stopped before we could prove optimality.
Processing time SBC: 139.87 seconds
Total Chemistry: 31
Squad Rating: 80
Total Cost: 7750
# Also best_bound = 6950 (the optimal_cost lies between current_value and best_bound, current_value could also be proven optimal if the solver is given more time)
|
Hey!
Thanks so much for making this. It looks awesome. Im simply trying to create a config for an 86 squad with at least 1 prem player. How can I do this. I keep getting unknown. Thanks @Regista6 !
The text was updated successfully, but these errors were encountered: