• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:29
CEST 13:29
KST 20:29
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy9ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20Clem wins HomeStory Cup 289
Community News
Weekly Cups (March 16-22): herO doubles, Cure surprises3Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool48Weekly Cups (March 9-15): herO, Clem, ByuN win42026 KungFu Cup Announcement6BGE Stara Zagora 2026 cancelled12
StarCraft 2
General
Team Liquid Map Contest #22 - Presented by Monster Energy What mix of new & old maps do you want in the next ladder pool? (SC2) Potential Updates Coming to the SC2 CN Server Behind the Blue - Team Liquid History Book herO wins SC2 All-Star Invitational
Tourneys
RSL Season 4 announced for March-April Sparkling Tuna Cup - Weekly Open Tournament StarCraft Evolution League (SC Evo Biweekly) WardiTV Mondays World University TeamLeague (500$+) | Signups Open
Strategy
Custom Maps
[M] (2) Frigid Storage Publishing has been re-enabled! [Feb 24th 2026]
External Content
The PondCast: SC2 News & Results Mutation # 518 Radiation Zone Mutation # 517 Distant Threat Mutation # 516 Specter of Death
Brood War
General
Pros React To: SoulKey vs Ample ASL21 General Discussion RepMastered™: replay sharing and analyzer site KK Platform will provide 1 million CNY Recent recommended BW games
Tourneys
[Megathread] Daily Proleagues [ASL21] Ro24 Group C [ASL21] Ro24 Group B [ASL21] Ro24 Group A
Strategy
What's the deal with APM & what's its true value Fighting Spirit mining rates Simple Questions, Simple Answers
Other Games
General Games
General RTS Discussion Thread Nintendo Switch Thread Stormgate/Frost Giant Megathread Darkest Dungeon Path of Exile
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread The Games Industry And ATVI European Politico-economics QA Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
Formula 1 Discussion 2024 - 2026 Football Thread Cricket [SPORT] Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 10603 users

Finding the best possible fantasy team - Page 2

Forum Index > SC2 General
Post a Reply
Prev 1 2 3 4 5 Next All
Goolpsy
Profile Joined November 2010
Denmark301 Posts
January 04 2013 03:03 GMT
#21
How about; Generate 5 teams based on (maximum number of points in W1) or (Maksimum expected points through out W1-4)
iirc KT made it easy this time around, being the most profitable team every W (I might be wrong here?) = KT selected as team.

Method for calculating optimal team:

Firstly; calculate expected point gain for every player, for every week

Eksample:
W1 = total number of points earned R1
W2 = (W1 Value) - (points earned W1)
W3 = W2 - (points earned W2)

Then for each week, starting with W2 (trade between W1 and W2):

Run For each player check if:
1. Is another player with higher expected points? (Factoring in the trade penalty)
2. Is it possible to trade for him? (Test of Trade values)
3. Does trade go against law of Races?
4. Make trade

Repeat


**Pros and Cons**
Pros:
Only have to run each weeks results through 6 times (1 for each player)
No need to even remove bad players from the tables
Cons:
Doesn't solve the problem of finding the optimal starting team...

Chr15t
Profile Joined March 2011
Denmark1103 Posts
January 04 2013 21:39 GMT
#22
Does anyone have a google-docs or simular document with the starting costs , and so on, for round 2?

I need some test numbers, costs, points, and trade values to test my program so far. Will probably have to wait till the end of 2. round before i have all the data needed to run a full scale test.
Insanity: doing the same thing over and over again and expecting different results.
StarStruck
Profile Blog Joined April 2010
25339 Posts
January 04 2013 21:49 GMT
#23
On January 04 2013 05:16 Spazer wrote:
Show nested quote +
On January 04 2013 04:57 Proseat wrote:
Couldn't R1CH pull the actual trade value formulas from the FPL code? Understanding how the trade values increase and decrease and being able to recreate it is key to any intended program to solve the presented problem. Otherwise you will not be able to decide who you could eligibly trade for each week.

That's what we're waiting on at the moment. But that doesn't mean we can't try to figure it out ourselves in the meantime.


Well going from round 1 to round 2 and looking at their point values? Yeah, I have a really hard time deciphering it. There are some good values in there and some total ripoffs that are outside the numbers like certain players not even being available to play certain weeks.
cjin
Profile Joined July 2011
181 Posts
January 07 2013 11:24 GMT
#24
Almost finished writing thingie to brute force it.

I had trade value and how much it changed from round1 week3->week4, so I had to quess trade values for week 2 for everyone and for week3 for teams.
+ Show Spoiler +

CJ Entus 4 6 3.80 10 3.60 12 3.81 12
EG.TL 6 -2 3.00 7 3.70 10 3.94 17
KT Rolster 3 8 4.00 12 4.30 20 5.30 32
Samsung Khan 4 1 2.00 0 0.90 -1 0.92 -1
SK Telecom T1 5 2 4.20 11 4.40 17 5.21 18
STX Soul 3 1 2.50 4 2.20 7 2.41 5
Team 8 1 2 1.20 -1 0.40 2 0.73 7
Woongjin Stars 3 -1 2.80 9 3.40 12 3.52 26

Acacia Z 1 1 1.00 2 1.01 4 1.17 6
Action Z 3 4 3.40 8 4.45 14 3.97 23
Alone Z 1 1 1.00 1 0.79 2 0.73 6
Baby T 7 6 6.80 6 5.33 18 6.00 22
BarrackS T 1 1 1.00 2 1.01 4 1.17 7
Bbyong T 4 4 4.00 9 4.29 12 3.81 12
Bear Z 1 0 0.80 1 0.79 2 0.73 2
Best P 6 4 5.60 8 5.21 10 3.94 11
BisAnG P 1 0 0.80 2 1.01 3 0.95 5
Bisu P 4 1 3.60 2 2.73 7 2.70 8

Bogus T 9 3 8.10 11 7.58 15 5.90 18
Bong[S.G] P 2 1 1.80 6 2.47 6 1.90 6
Calm Z 3 0 2.40 1 1.93 2 1.30 2
Classic T 3 0 2.40 4 2.60 5 1.97 5
Comet P 1 0 0.80 1 0.79 2 0.73 2
Crazy-Hydra Z 3 2 2.80 4 2.61 9 2.86 17
Dear P 3 3 3.10 7 4.67 14 3.97 18
Dream.t)check Z 2 1 1.80 1 1.37 2 1.02 3
Effort Z 9 1 7.70 8 6.92 15 5.90 21
Fantasy T 6 4 5.60 8 5.21 19 5.94 27

Flash T 10 4 8.90 6 7.50 22 7.75 24
Flying P 6 0 5.00 3 4.09 4 2.60 6
fOKINS Z 2 0 1.60 2 1.59 3 1.24 5
free P 3 0 2.40 3 2.37 7 2.41 12
Hanbin T 1 0 0.80 2 1.01 3 0.95 5
Haruhi P 1 1 1.00 1 0.79 2 0.73 3
HerO P x 0 5.10 4 4.89 12 4.67 13
herO[jOin] P 7 4 6.40 18 8.00 20 6.44 22
Hitman Z 1 1 1.10 5 1.68 7 1.84 9
HoeJJa Z 2 1 1.80 2 1.33 4 1.46 6

hOn_sin T 3 0 2.40 9 3.71 10 3.08 18
hOpe Z 2 0 1.60 3 1.81 3 1.24 5
Horang2 P 2 1 1.80 3 1.81 3 1.24 3
Huk P 3 1 2.60 2 2.15 3 1.52 4
Hydra Z 3 4 3.20 9 3.71 8 2.63 11
Hyuk Z 1 1 1.00 2 1.01 4 1.17 5
hyvaa Z 6 0 4.70 4 4.32 8 3.49 8
IdrA Z 2 0 1.60 1 1.37 2 1.02 3
Jaedong Z 8 0 7.00 7 6.12 12 4.95 16
Jaehoon P 5 4 4.80 8 4.64 13 4.32 14

JangBi P 5 0 4.20 1 3.08 5 2.54 15
JuNi Z 1 0 0.80 0 0.58 0 0.29 1
JYP P 4 0 3.40 7 3.85 10 3.37 18
Kop T 2 0 1.60 0 1.14 0 0.57 1
Last T 5 3 4.60 7 4.41 11 3.87 12
Leta P 3 1 2.60 3 2.38 3 1.52 3
Light T 4 0 3.20 2 2.73 6 2.48 12
Mind T 2 2 1.90 3 1.81 5 1.68 7
Mini P 4 0 3.40 1 2.50 5 2.25 5
miso T 1 1 1.00 2 1.01 4 1.17 6

Motive P 3 1 2.60 2 2.16 4 1.75 9
MyuNgSiK P 1 1 1.00 2 1.01 4 1.17 6
NaGi P 2 0 1.60 2 1.59 3 1.24 6
oDin Z 1 0 0.80 0 0.58 0 0.29 1
ParalyzE P 2 1 1.80 5 2.26 7 2.13 8
PenguiN Z 1 1 1.00 2 1.01 4 1.17 6
Puma T 3 1 2.60 3 2.38 4 1.75 6
Rain P 12 6 10.50 11 8.30 20 7.87 33
rare Z 1 1 1.00 3 1.24 3 0.95 3
Reality T 5 3 4.60 6 4.20 6 2.76 7

RorO Z 8 3 6.80 5 5.68 8 4.06 12
Rudy T 1 0 0.80 2 1.01 3 0.95 5
Ryul2 Z 2 4 2.40 4 2.03 8 2.35 12
s2 Z 1 1 1.00 5 1.68 7 1.84 11
Sacsri Z 3 1 2.60 2 2.16 7 2.41 8
Sea T 2 0 1.60 1 1.37 2 1.02 3
Sherry P 1 1 1.00 1 0.79 2 0.73 3
Shine Z 4 -1 3.00 -1 2.06 -1 0.92 1
Shy P 7 0 5.10 8 5.78 18 6.00 27
Size Z 1 0 0.80 1 0.79 2 0.73 2

sKyHigh T 4 4 4.00 6 3.62 10 3.37 10
Snow T 2 1 1.80 3 1.81 3 1.24 3
SonGDuri Z 2 1 1.80 7 2.69 10 2.79 11
soO Z 6 4 5.60 8 5.21 16 5.27 17
Soulkey Z 8 0 6.30 14 7.68 20 6.73 26
Speed T 2 4 2.40 5 2.25 10 2.79 18
Stats P 5 4 4.80 6 4.19 16 4.98 24
Stephano Z x 0 5.10 1 4.22 2 2.44 3
Stork P 6 3 5.40 3 4.10 7 3.27 11
Swift T 1 0 0.80 2 1.01 3 0.95 5

TaeJa T x 0 5.10 4 4.89 19 6.22 25
Terminator P 3 1 2.60 2 2.16 6 2.19 9
ThorZain T 3 0 2.40 1 1.93 2 1.30 6
Trap P 7 -1 5.00 3 4.66 10 4.22 11
Turn T 3 0 2.40 1 1.94 1 1.08 2
Wooki P 3 4 3.40 11 4.67 15 4.19 21
yeOngJae T 1 1 1.00 5 1.68 7 1.84 8
Zenio Z 3 0 2.40 4 2.60 5 1.97 9
ZerO Z 4 0 3.20 8 4.06 12 3.81 17

With these values best anti team I get gives -3 points.
+ Show Spoiler +

Week 1
Kop ±0
Shine +1
Trap +1
-----------------
weekly +2
total +2

Week 2
trade:Trap->Stork

Kop ±0
Shine ±0
Stork ±0
TradeTax -1
-----------------
weekly -1
total +1

Week 3
trade:Stork->Reality

Kop ±0
Shine ±0
Reality ±0
TradeTax -1
-----------------
weekly -1
total ±0

Week 4
trade:Shine->hyvaa

Kop -1
hyvaa ±0
Reality -1
TradeTax -1
-----------------
weekly -3
total -3


May not be the only way to get -3, but better score should not be possible.

It took some 75 minutes to get anti team, not gonna search main until I make some adjustments to algorithm, maybe even rewrite it form scratch.
Chr15t
Profile Joined March 2011
Denmark1103 Posts
January 07 2013 14:31 GMT
#25
On January 07 2013 20:24 cjin wrote:
Almost finished writing thingie to brute force it.

I had trade value and how much it changed from round1 week3->week4, so I had to quess trade values for week 2 for everyone and for week3 for teams.
+ Show Spoiler +

CJ Entus 4 6 3.80 10 3.60 12 3.81 12
EG.TL 6 -2 3.00 7 3.70 10 3.94 17
KT Rolster 3 8 4.00 12 4.30 20 5.30 32
Samsung Khan 4 1 2.00 0 0.90 -1 0.92 -1
SK Telecom T1 5 2 4.20 11 4.40 17 5.21 18
STX Soul 3 1 2.50 4 2.20 7 2.41 5
Team 8 1 2 1.20 -1 0.40 2 0.73 7
Woongjin Stars 3 -1 2.80 9 3.40 12 3.52 26

Acacia Z 1 1 1.00 2 1.01 4 1.17 6
Action Z 3 4 3.40 8 4.45 14 3.97 23
Alone Z 1 1 1.00 1 0.79 2 0.73 6
Baby T 7 6 6.80 6 5.33 18 6.00 22
BarrackS T 1 1 1.00 2 1.01 4 1.17 7
Bbyong T 4 4 4.00 9 4.29 12 3.81 12
Bear Z 1 0 0.80 1 0.79 2 0.73 2
Best P 6 4 5.60 8 5.21 10 3.94 11
BisAnG P 1 0 0.80 2 1.01 3 0.95 5
Bisu P 4 1 3.60 2 2.73 7 2.70 8

Bogus T 9 3 8.10 11 7.58 15 5.90 18
Bong[S.G] P 2 1 1.80 6 2.47 6 1.90 6
Calm Z 3 0 2.40 1 1.93 2 1.30 2
Classic T 3 0 2.40 4 2.60 5 1.97 5
Comet P 1 0 0.80 1 0.79 2 0.73 2
Crazy-Hydra Z 3 2 2.80 4 2.61 9 2.86 17
Dear P 3 3 3.10 7 4.67 14 3.97 18
Dream.t)check Z 2 1 1.80 1 1.37 2 1.02 3
Effort Z 9 1 7.70 8 6.92 15 5.90 21
Fantasy T 6 4 5.60 8 5.21 19 5.94 27

Flash T 10 4 8.90 6 7.50 22 7.75 24
Flying P 6 0 5.00 3 4.09 4 2.60 6
fOKINS Z 2 0 1.60 2 1.59 3 1.24 5
free P 3 0 2.40 3 2.37 7 2.41 12
Hanbin T 1 0 0.80 2 1.01 3 0.95 5
Haruhi P 1 1 1.00 1 0.79 2 0.73 3
HerO P x 0 5.10 4 4.89 12 4.67 13
herO[jOin] P 7 4 6.40 18 8.00 20 6.44 22
Hitman Z 1 1 1.10 5 1.68 7 1.84 9
HoeJJa Z 2 1 1.80 2 1.33 4 1.46 6

hOn_sin T 3 0 2.40 9 3.71 10 3.08 18
hOpe Z 2 0 1.60 3 1.81 3 1.24 5
Horang2 P 2 1 1.80 3 1.81 3 1.24 3
Huk P 3 1 2.60 2 2.15 3 1.52 4
Hydra Z 3 4 3.20 9 3.71 8 2.63 11
Hyuk Z 1 1 1.00 2 1.01 4 1.17 5
hyvaa Z 6 0 4.70 4 4.32 8 3.49 8
IdrA Z 2 0 1.60 1 1.37 2 1.02 3
Jaedong Z 8 0 7.00 7 6.12 12 4.95 16
Jaehoon P 5 4 4.80 8 4.64 13 4.32 14

JangBi P 5 0 4.20 1 3.08 5 2.54 15
JuNi Z 1 0 0.80 0 0.58 0 0.29 1
JYP P 4 0 3.40 7 3.85 10 3.37 18
Kop T 2 0 1.60 0 1.14 0 0.57 1
Last T 5 3 4.60 7 4.41 11 3.87 12
Leta P 3 1 2.60 3 2.38 3 1.52 3
Light T 4 0 3.20 2 2.73 6 2.48 12
Mind T 2 2 1.90 3 1.81 5 1.68 7
Mini P 4 0 3.40 1 2.50 5 2.25 5
miso T 1 1 1.00 2 1.01 4 1.17 6

Motive P 3 1 2.60 2 2.16 4 1.75 9
MyuNgSiK P 1 1 1.00 2 1.01 4 1.17 6
NaGi P 2 0 1.60 2 1.59 3 1.24 6
oDin Z 1 0 0.80 0 0.58 0 0.29 1
ParalyzE P 2 1 1.80 5 2.26 7 2.13 8
PenguiN Z 1 1 1.00 2 1.01 4 1.17 6
Puma T 3 1 2.60 3 2.38 4 1.75 6
Rain P 12 6 10.50 11 8.30 20 7.87 33
rare Z 1 1 1.00 3 1.24 3 0.95 3
Reality T 5 3 4.60 6 4.20 6 2.76 7

RorO Z 8 3 6.80 5 5.68 8 4.06 12
Rudy T 1 0 0.80 2 1.01 3 0.95 5
Ryul2 Z 2 4 2.40 4 2.03 8 2.35 12
s2 Z 1 1 1.00 5 1.68 7 1.84 11
Sacsri Z 3 1 2.60 2 2.16 7 2.41 8
Sea T 2 0 1.60 1 1.37 2 1.02 3
Sherry P 1 1 1.00 1 0.79 2 0.73 3
Shine Z 4 -1 3.00 -1 2.06 -1 0.92 1
Shy P 7 0 5.10 8 5.78 18 6.00 27
Size Z 1 0 0.80 1 0.79 2 0.73 2

sKyHigh T 4 4 4.00 6 3.62 10 3.37 10
Snow T 2 1 1.80 3 1.81 3 1.24 3
SonGDuri Z 2 1 1.80 7 2.69 10 2.79 11
soO Z 6 4 5.60 8 5.21 16 5.27 17
Soulkey Z 8 0 6.30 14 7.68 20 6.73 26
Speed T 2 4 2.40 5 2.25 10 2.79 18
Stats P 5 4 4.80 6 4.19 16 4.98 24
Stephano Z x 0 5.10 1 4.22 2 2.44 3
Stork P 6 3 5.40 3 4.10 7 3.27 11
Swift T 1 0 0.80 2 1.01 3 0.95 5

TaeJa T x 0 5.10 4 4.89 19 6.22 25
Terminator P 3 1 2.60 2 2.16 6 2.19 9
ThorZain T 3 0 2.40 1 1.93 2 1.30 6
Trap P 7 -1 5.00 3 4.66 10 4.22 11
Turn T 3 0 2.40 1 1.94 1 1.08 2
Wooki P 3 4 3.40 11 4.67 15 4.19 21
yeOngJae T 1 1 1.00 5 1.68 7 1.84 8
Zenio Z 3 0 2.40 4 2.60 5 1.97 9
ZerO Z 4 0 3.20 8 4.06 12 3.81 17

With these values best anti team I get gives -3 points.
+ Show Spoiler +

Week 1
Kop ±0
Shine +1
Trap +1
-----------------
weekly +2
total +2

Week 2
trade:Trap->Stork

Kop ±0
Shine ±0
Stork ±0
TradeTax -1
-----------------
weekly -1
total +1

Week 3
trade:Stork->Reality

Kop ±0
Shine ±0
Reality ±0
TradeTax -1
-----------------
weekly -1
total ±0

Week 4
trade:Shine->hyvaa

Kop -1
hyvaa ±0
Reality -1
TradeTax -1
-----------------
weekly -3
total -3


May not be the only way to get -3, but better score should not be possible.

It took some 75 minutes to get anti team, not gonna search main until I make some adjustments to algorithm, maybe even rewrite it form scratch.


Nice it seems like we have been going very simular ways with our approach. I have tried to calculate the optimal main team given random points and tradevalues myself. This was also done with a significant smaller player pool. I plan on running it full scale once the first week of the pl.round is over.

does your implementation take into account that suboptimal trades one week, might end up leading to a higher result further along the way?. Mine doesnt, it tries to max out all of the possible teams values each week.

If thats the case i would like if you could put your code up on pastebin or gist.github
Insanity: doing the same thing over and over again and expecting different results.
cjin
Profile Joined July 2011
181 Posts
January 07 2013 16:21 GMT
#26
On January 07 2013 23:31 Chr15t wrote:
does your implementation take into account that suboptimal trades one week, might end up leading to a higher result further along the way?. Mine doesnt, it tries to max out all of the possible teams values each week.

If thats the case i would like if you could put your code up on pastebin or gist.github


As long as the lineup is on top 100000 score of the possible lineups of that week. Well, not all possible, just the ones you can get from the top 100000 of previous week.

Probably best way to fasten search (or at least easiest way) would be to reduce that to 10000. I was thinking about to not allow trades where you trade to a player that is going to score 1 or less on next round. Or just less than the player you are trading out.
Chr15t
Profile Joined March 2011
Denmark1103 Posts
January 07 2013 17:05 GMT
#27
On January 08 2013 01:21 cjin wrote:
Show nested quote +
On January 07 2013 23:31 Chr15t wrote:
does your implementation take into account that suboptimal trades one week, might end up leading to a higher result further along the way?. Mine doesnt, it tries to max out all of the possible teams values each week.

If thats the case i would like if you could put your code up on pastebin or gist.github


As long as the lineup is on top 100000 score of the possible lineups of that week. Well, not all possible, just the ones you can get from the top 100000 of previous week.

Probably best way to fasten search (or at least easiest way) would be to reduce that to 10000. I was thinking about to not allow trades where you trade to a player that is going to score 1 or less on next round. Or just less than the player you are trading out.


In my program i test for if its viable to trade players based on the following week, so i dont end up having too, too many team combinations ;D
Insanity: doing the same thing over and over again and expecting different results.
cjin
Profile Joined July 2011
181 Posts
January 08 2013 00:12 GMT
#28
On January 08 2013 02:05 Chr15t wrote:
Show nested quote +
On January 08 2013 01:21 cjin wrote:
On January 07 2013 23:31 Chr15t wrote:
does your implementation take into account that suboptimal trades one week, might end up leading to a higher result further along the way?. Mine doesnt, it tries to max out all of the possible teams values each week.

If thats the case i would like if you could put your code up on pastebin or gist.github


As long as the lineup is on top 100000 score of the possible lineups of that week. Well, not all possible, just the ones you can get from the top 100000 of previous week.

Probably best way to fasten search (or at least easiest way) would be to reduce that to 10000. I was thinking about to not allow trades where you trade to a player that is going to score 1 or less on next round. Or just less than the player you are trading out.


In my program i test for if its viable to trade players based on the following week, so i dont end up having too, too many team combinations ;D


I was going to cut out low end scoring teams, like 25+ points behind leading team at the end of each week or something like that, just haven't done it yet
xmungam
Profile Joined July 2012
United States1050 Posts
January 08 2013 01:12 GMT
#29
this is impossible to know because you can't know which players will win until they do...

User was warned for this post
youtube.com/xmungam ~~ twitch.tv/thenessman
Spazer
Profile Blog Joined March 2009
Canada8033 Posts
Last Edited: 2013-01-08 05:29:02
January 08 2013 05:28 GMT
#30
I tried brute forcing the main using the 30 highest scoring players per week (works out to 53 players total). It tested 583 teams over the course of 2.5 hours before I shut it down since it was obviously never going to finish in a reasonable amount of time. In comparison, with the 20 highest scoring players per week (pool of 41), I did 279 teams over 40 minutes. With the 10 highest scoring players per week (pool of 27), I did 285 in 35 minutes.

In short, brute forcing main teams is a pipe dream for large pools of players until we do some optimization.

Low trade value players can be evaluated almost instantly, but high ones take forever. For instance, testing trades with an initial team of KT Rolster, s2, hitman, barracks, alone, jangbi, and bogus took 1 minute 18 seconds by itself. I need a better way of discarding initial teams.

With anti-teams, discarding initial teams is really easy. If an initial team scores more points than your current best team right off the bat, you can safely skip it. This trims off entire branches and really cuts down on the calculation time. What we need is a smart way to do this for main teams as well.

I was thinking something along the lines of this:
  1. Take an initial team
  2. Determine the two best players that are not on your team for the current week
  3. Switch them for the two lowest scoring players on your team REGARDLESS of trade value
  4. Repeat steps 2-3 for each week
  5. If the final score is lower than the final score of your current best team, you can safely ignore this branch


My currently implemented system like this:
  1. Take X top scoring players of each week to generate a pool of players.
  2. Make an ordered list ranking the pool of players by cost.
  3. Use a bunch of nested loops to iterate through the cost ordered list. This will make an initial team. The ordered list allows us to ignore all players past a certain point for a given loop once the cost exceeds 30.
  4. Check the race requirement for the initial team
  5. Test trades for the initial team. I use an ordered list of trade values here so that I can ignore players past a certain point, just like with step 3.
  6. Only attempt trades where the new player scores more points than the current player at some point in the future.
  7. Call the trade function recursively for each week
  8. Select the highest scoring resultant team and compare it against whatever our best solution currently is. Replace the best team if we've scored higher.


Also, the formula for trade value seems to be
Trade value = cost * (total games in round - games played)/total games in round + points * 2/7


I'm still uncertain about the 2/7 part, but it works so far for round 2 week 1. Somehow in the last round, it ends up being (points / 4.5), and I have no idea when or how.
Liquipedia
Kentredenite
Profile Joined January 2011
United States220 Posts
January 08 2013 06:01 GMT
#31
On January 08 2013 10:12 xmungam wrote:
this is impossible to know because you can't know which players will win until they do...

But you do know which players have won, because they did!
cjin
Profile Joined July 2011
181 Posts
Last Edited: 2013-01-08 13:28:39
January 08 2013 13:25 GMT
#32
On January 08 2013 14:28 Spazer wrote:
I tried brute forcing the main using the 30 highest scoring players per week (works out to 53 players total). It tested 583 teams over the course of 2.5 hours before I shut it down since it was obviously never going to finish in a reasonable amount of time. In comparison, with the 20 highest scoring players per week (pool of 41), I did 279 teams over 40 minutes. With the 10 highest scoring players per week (pool of 27), I did 285 in 35 minutes.

In short, brute forcing main teams is a pipe dream for large pools of players until we do some optimization.

Low trade value players can be evaluated almost instantly, but high ones take forever. For instance, testing trades with an initial team of KT Rolster, s2, hitman, barracks, alone, jangbi, and bogus took 1 minute 18 seconds by itself. I need a better way of discarding initial teams.

With anti-teams, discarding initial teams is really easy. If an initial team scores more points than your current best team right off the bat, you can safely skip it. This trims off entire branches and really cuts down on the calculation time. What we need is a smart way to do this for main teams as well.

I was thinking something along the lines of this:
  1. Take an initial team
  2. Determine the two best players that are not on your team for the current week
  3. Switch them for the two lowest scoring players on your team REGARDLESS of trade value
  4. Repeat steps 2-3 for each week
  5. If the final score is lower than the final score of your current best team, you can safely ignore this branch


My currently implemented system like this:
  1. Take X top scoring players of each week to generate a pool of players.
  2. Make an ordered list ranking the pool of players by cost.
  3. Use a bunch of nested loops to iterate through the cost ordered list. This will make an initial team. The ordered list allows us to ignore all players past a certain point for a given loop once the cost exceeds 30.
  4. Check the race requirement for the initial team
  5. Test trades for the initial team. I use an ordered list of trade values here so that I can ignore players past a certain point, just like with step 3.
  6. Only attempt trades where the new player scores more points than the current player at some point in the future.
  7. Call the trade function recursively for each week
  8. Select the highest scoring resultant team and compare it against whatever our best solution currently is. Replace the best team if we've scored higher.


Also, the formula for trade value seems to be
Trade value = cost * (total games in round - games played)/total games in round + points * 2/7


I'm still uncertain about the 2/7 part, but it works so far for round 2 week 1. Somehow in the last round, it ends up being (points / 4.5), and I have no idea when or how.


I rewrote whole mainteamsearching shit, and ended with something like that. Only shortcut I have taken is, that instead of
6. Only attempt trades where the new player scores more points than the current player at some point in the future.
I just don't allow to trade into player who will score 1 or less on next round. Or into team that will score 0 or less.

I takes long to go trough all, but I'm confident it will find best solutions early. I put my round1 data trough it, and it found team that scores 215 (212 with anti team, witch is lot better than the 163 points without any trades.) in first 30 mins of running, and haven't found any better for an hour, and I think it will not find anything better anymore.

Now it is basicly just discarding every startteam suggestion becouce of my version of
[*]Determine the two best players that are not on your team for the current week
[*]Switch them for the two lowest scoring players on your team REGARDLESS of trade value
[*]Repeat steps 2-3 for each week
check
Chr15t
Profile Joined March 2011
Denmark1103 Posts
January 08 2013 15:26 GMT
#33
On January 08 2013 22:25 cjin wrote:
Show nested quote +
On January 08 2013 14:28 Spazer wrote:
I tried brute forcing the main using the 30 highest scoring players per week (works out to 53 players total). It tested 583 teams over the course of 2.5 hours before I shut it down since it was obviously never going to finish in a reasonable amount of time. In comparison, with the 20 highest scoring players per week (pool of 41), I did 279 teams over 40 minutes. With the 10 highest scoring players per week (pool of 27), I did 285 in 35 minutes.

In short, brute forcing main teams is a pipe dream for large pools of players until we do some optimization.

Low trade value players can be evaluated almost instantly, but high ones take forever. For instance, testing trades with an initial team of KT Rolster, s2, hitman, barracks, alone, jangbi, and bogus took 1 minute 18 seconds by itself. I need a better way of discarding initial teams.

With anti-teams, discarding initial teams is really easy. If an initial team scores more points than your current best team right off the bat, you can safely skip it. This trims off entire branches and really cuts down on the calculation time. What we need is a smart way to do this for main teams as well.

I was thinking something along the lines of this:
  1. Take an initial team
  2. Determine the two best players that are not on your team for the current week
  3. Switch them for the two lowest scoring players on your team REGARDLESS of trade value
  4. Repeat steps 2-3 for each week
  5. If the final score is lower than the final score of your current best team, you can safely ignore this branch


My currently implemented system like this:
  1. Take X top scoring players of each week to generate a pool of players.
  2. Make an ordered list ranking the pool of players by cost.
  3. Use a bunch of nested loops to iterate through the cost ordered list. This will make an initial team. The ordered list allows us to ignore all players past a certain point for a given loop once the cost exceeds 30.
  4. Check the race requirement for the initial team
  5. Test trades for the initial team. I use an ordered list of trade values here so that I can ignore players past a certain point, just like with step 3.
  6. Only attempt trades where the new player scores more points than the current player at some point in the future.
  7. Call the trade function recursively for each week
  8. Select the highest scoring resultant team and compare it against whatever our best solution currently is. Replace the best team if we've scored higher.


Also, the formula for trade value seems to be
Trade value = cost * (total games in round - games played)/total games in round + points * 2/7


I'm still uncertain about the 2/7 part, but it works so far for round 2 week 1. Somehow in the last round, it ends up being (points / 4.5), and I have no idea when or how.


I rewrote whole mainteamsearching shit, and ended with something like that. Only shortcut I have taken is, that instead of
6. Only attempt trades where the new player scores more points than the current player at some point in the future.
I just don't allow to trade into player who will score 1 or less on next round. Or into team that will score 0 or less.

I takes long to go trough all, but I'm confident it will find best solutions early. I put my round1 data trough it, and it found team that scores 215 (212 with anti team, witch is lot better than the 163 points without any trades.) in first 30 mins of running, and haven't found any better for an hour, and I think it will not find anything better anymore.

Now it is basicly just discarding every startteam suggestion becouce of my version of
[*]Determine the two best players that are not on your team for the current week
[*]Switch them for the two lowest scoring players on your team REGARDLESS of trade value
[*]Repeat steps 2-3 for each week
check


What language do you use? - would like to know if i would have any benifit from you uploading your solution ;D
Insanity: doing the same thing over and over again and expecting different results.
monk
Profile Blog Joined May 2009
United States8476 Posts
January 08 2013 15:47 GMT
#34
I do know that every round there's a "magic number" which is a constant we have to input to determine trade values. This number is an estimate of how many points each player will score. For example, a 4 pointer is expected to score 14 points. Round 2's magic number was 3.5, which accounts for the 2/7(1/3.5=2/7) in the formula you guys figured out.
Moderator
Chr15t
Profile Joined March 2011
Denmark1103 Posts
January 08 2013 18:51 GMT
#35
Oh hi monk, I wonder if you can tell me when this weeks trade-window starts, i've been f5ing the page every 30th minut so far, to get my hands on the new data to test out optimizations for my current program.
Insanity: doing the same thing over and over again and expecting different results.
Zenbrez
Profile Joined June 2012
Canada5973 Posts
Last Edited: 2013-01-08 19:01:16
January 08 2013 18:59 GMT
#36
I was here thinking the fun of this "game" would be to determine who had the better instinct and had the best opinion of player's skill/potential. Silly me.

Don't read this as a negative comment, it's not intended to me I just don't know how else to word it - is there any satisfaction in using a script to determine your team?

User was warned for this post
Refer to my post.
Serek
Profile Joined May 2011
United Kingdom459 Posts
January 08 2013 19:09 GMT
#37
On January 09 2013 03:59 Zenbrez wrote:
Don't read this as a negative comment, it's not intended to me I just don't know how else to word it - is there any satisfaction in using a script to determine your team?


You don't get it. They do it because of the satisfaction that comes from having a go at a hard problem and solving it. That's as much fun as anything else you can think of it that's what floats your boat.
achan1058
Profile Joined February 2012
1091 Posts
Last Edited: 2013-01-08 19:28:28
January 08 2013 19:15 GMT
#38
On January 01 2013 02:10 Laquendi wrote:
The optimal anti-team you can probably compute pretty easily with A* and any sort of decent heuristic. My current idea for heuristic (untested and unproven) is to use dynamic programming to get decent lower limit each player and week.

The optimal main-team seems to be much harder problem. It might even be NP-hard since it's essentially longest path problem ( http://en.wikipedia.org/wiki/Longest_path_problem ). Unless someone is able to come up with something really smart we won't be able to prove that we have found the optimal team. It's likely you can get pretty decent results with some probabilistic optimization techniques (maybe something like MAX-MIN Ant System?) or linear programming with heavy restrictions but I'm not very experienced with these methods.
The longest path is on a DAG, no? So DP could still work. I am more concerned about the number of states if we use DP, however. It's approximately 10^10 teams out there, without counting anti-teams and such.

Edit: Calculations are slightly off. It's more like 10^10 instead of 10^12. Still a pretty big number, but probably doable with enough machine power.
Gfire
Profile Joined March 2011
United States1699 Posts
January 08 2013 19:17 GMT
#39
On January 09 2013 04:09 Serek wrote:
Show nested quote +
On January 09 2013 03:59 Zenbrez wrote:
Don't read this as a negative comment, it's not intended to me I just don't know how else to word it - is there any satisfaction in using a script to determine your team?


You don't get it. They do it because of the satisfaction that comes from having a go at a hard problem and solving it. That's as much fun as anything else you can think of it that's what floats your boat.

The script is only for determine the best team after-the-fact... Just for the sake of knowing, after all the games have been played, what the best possible team would have been.
all's fair in love and melodies
lookfirewood
Profile Joined May 2011
1212 Posts
Last Edited: 2013-01-08 19:21:20
January 08 2013 19:20 GMT
#40
On January 09 2013 03:59 Zenbrez wrote:
I was here thinking the fun of this "game" would be to determine who had the better instinct and had the best opinion of player's skill/potential. Silly me.

Don't read this as a negative comment, it's not intended to me I just don't know how else to word it - is there any satisfaction in using a script to determine your team?

User was warned for this post


Well the point of the script is to determine the best possible team, with trades, in RETROSPECT. Meaning when all matches are over you can compare your actual team to the best possible one. So it's not about "cheating" or "beating the system", it's about making a tool that is making it easier for those who created the fantasy feature. Instead of manually calculating the "best possible team with trades", which would take forever, they can enter the right numbers into this number-crunching-tool and it does it for them.

And again, this is all done AFTER the games are played.


On another note, I am intrigued by this thread, following this with great interest!

best
Kim
R.I.P STX 03.08.2013 never forget.
Prev 1 2 3 4 5 Next All
Please log in or register to reply.
Live Events Refresh
WardiTV Team League
11:00
Group A
WardiTV318
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Tasteless 826
IndyStarCraft 225
SortOf 101
Rex 93
MindelVK 39
Railgan 3
StarCraft: Brood War
Britney 31484
Jaedong 1227
BeSt 591
Shuttle 359
actioN 335
Zeus 329
firebathero 326
Rush 305
Mini 295
Stork 229
[ Show more ]
EffOrt 214
Killer 202
Last 202
Hyuk 187
Larva 171
Dewaltoss 164
Soulkey 109
Light 107
ZerO 103
ggaemo 101
PianO 97
Hyun 96
ToSsGirL 96
JYJ 87
sSak 77
Backho 73
sorry 54
Bale 46
Sharp 39
HiyA 36
Sea.KH 32
hero 20
GoRush 19
Sacsri 16
Noble 16
ajuk12(nOOB) 11
SilentControl 11
Movie 6
ivOry 3
Dota 2
Gorgc4499
XaKoH 701
XcaliburYe217
NeuroSwarm120
Counter-Strike
fl0m2690
shoxiejesuss2458
x6flipin224
Other Games
FrodaN3848
singsing1942
B2W.Neo1279
crisheroes328
Fuzer 200
KnowMe129
Mew2King46
ZerO(Twitch)13
Organizations
StarCraft 2
CranKy Ducklings61
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• LUISG 23
• Adnapsc2 16
• CranKy Ducklings SOOP4
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV160
Upcoming Events
BSL
7h 31m
Replay Cast
12h 31m
Replay Cast
21h 31m
Afreeca Starleague
22h 31m
Light vs Calm
Royal vs Mind
Wardi Open
23h 31m
Monday Night Weeklies
1d 4h
OSC
1d 12h
Sparkling Tuna Cup
1d 22h
Afreeca Starleague
1d 22h
Rush vs PianO
Flash vs Speed
Replay Cast
2 days
[ Show More ]
Afreeca Starleague
2 days
BeSt vs Leta
Queen vs Jaedong
Replay Cast
3 days
The PondCast
3 days
Replay Cast
4 days
RSL Revival
4 days
Replay Cast
5 days
RSL Revival
5 days
BSL
6 days
RSL Revival
6 days
Liquipedia Results

Completed

Proleague 2026-03-27
WardiTV Winter 2026
Underdog Cup #3

Ongoing

BSL Season 22
CSL Elite League 2026
CSL Season 20: Qualifier 1
ASL Season 21
Acropolis #4 - TS6
2026 Changsha Offline CUP
StarCraft2 Community Team League 2026 Spring
RSL Revival: Season 4
Nations Cup 2026
NationLESS Cup
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

CSL Season 20: Qualifier 2
Escore Tournament S2: W1
CSL 2026 SPRING (S20)
Acropolis #4
IPSL Spring 2026
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.