• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:48
CEST 13:48
KST 20:48
  • 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
RSL Season 1 - Final Week6[ASL19] Finals Recap: Standing Tall12HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0
Community News
Esports World Cup 2025 - Brackets Revealed10Weekly Cups (July 7-13): Classic continues to roll4Team TLMC #5 - Submission extension3Firefly given lifetime ban by ESIC following match-fixing investigation17$25,000 Streamerzone StarCraft Pro Series announced7
StarCraft 2
General
RSL Revival patreon money discussion thread The GOAT ranking of GOAT rankings Who will win EWC 2025? Weekly Cups (July 7-13): Classic continues to roll Esports World Cup 2025 - Brackets Revealed
Tourneys
RSL: Revival, a new crowdfunded tournament series FEL Cracov 2025 (July 27) - $8000 live event $5,100+ SEL Season 2 Championship (SC: Evo) WardiTV Mondays Sparkling Tuna Cup - Weekly Open Tournament
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
External Content
Mutation # 482 Wheel of Misfortune Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome
Brood War
General
Flash Announces (and Retracts) Hiatus From ASL BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ Starcraft in widescreen A cwal.gg Extension - Easily keep track of anyone
Tourneys
[Megathread] Daily Proleagues Cosmonarchy Pro Showmatches CSL Xiamen International Invitational [BSL20] Non-Korean Championship 4x BSL + 4x China
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Path of Exile Nintendo Switch Thread Stormgate/Frost Giant Megathread CCLP - Command & Conquer League Project The PlayStation 5
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Stop Killing Games - European Citizens Initiative Summer Games Done Quick 2025! Things Aren’t Peaceful in Palestine
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 2024 - 2025 Football Thread NBA General Discussion NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Men Take Risks, Women Win Ga…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 587 users

Cost Theory and No. of Workers in a Game

Forum Index > BW General
Post a Reply
1 2 3 Next All
DongTanks
Profile Joined January 2010
Singapore15 Posts
Last Edited: 2010-01-07 11:55:40
January 07 2010 08:28 GMT
#1
Hi! This is PART of the research I have done on ideal mining in Starcraft (sorry for not being able to post all my findings but yeah man... that means I'll be wiser ;D), and also this can be treated as a follow up on IMPERVIOUS' thread on Ideal Mining, so do check that out too.

Although this is only a part of my research, I bet this is all you need to know to play. 24 workers every mineral line with 8/9 patches is a pretty well-known number, no?

Now, I'll just show you some of the data that i have collected. Note that there are erroneous data under 'average minerals gathered/worker/minute', which could be due to human reaction time as my research team was using a stopwatch. Although it does not affect the final argument, DO NOT take these readings as standard.

Taking the ceteris paribus assumption...

Number of Workers | Average Mineral Gathered/Worker/Minute | Average Mineral Spent/Worker
4............................................78.5.................................................175
8 ...........................................60.0.................................................112
12..........................................55.0.................................................100
16..........................................49.5..................................................87.5
20..........................................44.8..................................................80.0
24..........................................44.7..................................................79.2
32 .........................................38.0..................................................75.0
36..........................................33.6 .................................................72.2
40..........................................38.0..................................................70.0
44..........................................33.6..................................................70.5
48..........................................30.1..................................................68.8

Note: Average Mineral Spent / Worker = (400 + No. of Supply depots*100 + No. of Workers*50) / No. of Workers, where 400 = cost of a command centre / nexus and not including hatchery.

We will then derive the average cost of a worker, which equals (average minerals spent/worker) - (Average Minerals Gathered/Worker/Minute)

No. of Workers | Average Cost of a Worker
4....................................96.5
8....................................52..0
12...................................45.0
16...................................38.0
20...................................35.2
24...................................34.5
28...................................36.4
32...................................37.0
36...................................38.6
40...................................32.0
44...................................36.9
48...................................38.7

Plotting the points on the graph, you will roughly get a U shape curve. Because some data are erroneous as mentioned earlier, you will not get a smooth curve, which is not suppose to be so. BUT the trend of the readings can be seen going in a U shape curve, with those points that are plotted way off being the erroneous points. But anyway, that curve is the short-run average cost curve (SRAC). It shows the cost efficiency of each worker against the number of workers in a SINGLE base (considering early game where you only have one command centre). The minimum point of the U shape curve is where the cost of the worker is at the lowest, and it is at its lowest when the number of workers in a SINGLE base is 24.

[image loading]

[Picture in courtesy of The Open University, GREAT HELP there...]

Another reason why it's 24 without using the Theory of Economics is.... the mineral line will simply reach saturation.

Ok... so when it reaches mid-game, a player will most likely take multiple expansions (duh). We will now examine the long run average cost curve (LRAC), taking the ceteris paribus assumption again, and the assumption that all mining bases are at maximum efficiency (24 workers each).

No. of Workers | Average Cost of a Worker
48.................................34.5...................
48.................................32.3...................
72.................................33.1...................
96.................................32.0...................
160...............................31.7...................
(You cannot go beyond 160 workers, man.....)

[Note: Average COst of a Worker = (No. of Command Centre * 400 + No. of Supply Depots * 100 + No. of Workers * 50)/No. of Workers]

[image loading]

Picture in courtesy of The Open University... BIG HELP again... :D

[Note that the LRAC is made up of infinitely many SRAC at its most efficient/minimum point)

Ignoring the erroneous data, when these points are plotted you will get a 1/x curve. This curve will have a very large minimum efficient scale (minimum point, which is the lowest point of the curve) of infinity (because, as no. of workers reaches infinity, the cost of each worker approaches 0). This shows that the more bases you get, the more cost efficient your workers will be as there are no dis-economies of scale, while the reason on why the cost of each worker will come infinitely close to 0 as the no of workers increases lies in the idea of the economies of scale.

As each base should contain 1 command centre, it can only be employed efficiently if it is producing workers at the lowest cost, which is when the number of workers = 24. That means, to be at its most efficient, the command centre has to produce at least a certain amount of output. A command centre producing less than 24 workers will not be as efficient as a command centre producing 24 workers. This is the idea of factor indivisibility in the idea of 'economies of scale'.

*EDIT: Sorry to the zergs but these readings do not include hatcheries, drones and overlords. But using the same methods, in theory the zergs will need less workers to be efficient as the cost of the hatchery is 100 minerals less than the cc/nexus. I do not know the actual number as it requires another set of calculations (but of the same methods).

Conclusion:
24 workers is the best number because it saturates the mineral line, which will result in a higher cost efficiency, leaving you aside with more minerals to produce units.
And also, the more bases the better.
(Thanks Whiplash for reminding)
One may not be gosu, but passion alone makes him a Starcraft player.
Nevuk
Profile Blog Joined March 2009
United States16280 Posts
January 07 2010 08:42 GMT
#2
Having more than 80, maybe 100 workers is really prohibitive. Very interesting stuff.

A suggestion, though. For research in this area I think using probes is better as they are a bit less buggy in their mining patterns and have the fastest mining rate. (IE, a really fast terran can forcibly change the mining patterns of their like first 10 or so scvs to achieve quicker mining. It only gives you like an extra 30-50 minerals though). You would probably get less erroneous data with probes. Drones have the intermediate mining rate if you are interested in that, but zerg economy has an entire extra variable beyond the 3 that terran/protoss have.
DongTanks
Profile Joined January 2010
Singapore15 Posts
January 07 2010 11:17 GMT
#3
You would probably get less erroneous data with probes.

I'll put that in mind. Thanks for the input.
One may not be gosu, but passion alone makes him a Starcraft player.
Whiplash
Profile Blog Joined October 2008
United States2928 Posts
January 07 2010 11:31 GMT
#4
Can you have a conclusion or summary of what your trying to say here? I kinda read over most of it and I still don't understand. Is there an optimal number of workers we're trying to hit here? (keep in mind im posting this at 6:30 am and I haven't gone to sleep yet).
Cinematographer / Steadicam Operator. Former Starcraft commentator/player
DongTanks
Profile Joined January 2010
Singapore15 Posts
Last Edited: 2010-01-07 11:39:56
January 07 2010 11:39 GMT
#5
Ho ho!? Sorry 'bout dat. The conclusion is that 24 workers on each base with 8/9 patches of minerals is the best number, both because it saturates the mineral line and also it is the most cost efficient, leaving aside more minerals for producing units. And also the more expansions you have, the better
One may not be gosu, but passion alone makes him a Starcraft player.
d3_crescentia
Profile Blog Joined May 2009
United States4054 Posts
January 07 2010 11:40 GMT
#6
As a physicist I'd like to see some error analysis/uncertainties from multiple runs of the data. The LRAC numbers in particular look too close to be called definitive in comparison to the data of the SRAC. Also I'm sort of uncomfortable with how you define Average Mineral Spent/Worker, so if you could explain your methodology in a later post that would be awesome.

Also, if you want to improve your runs (or perhaps even automate them) you could potentially try via UMS maps.
once, not long ago, there was a moon here
inReacH
Profile Blog Joined August 2008
Sweden1612 Posts
Last Edited: 2010-01-07 11:49:59
January 07 2010 11:46 GMT
#7
Taking the ceteris paribus assumption...

Number of Workers | Average Mineral Gathered/Worker/Minute
4............................................78.5.
8 ...........................................60.0..

How can 4 workers be that much more efficient than 8 when the only difference between the first 4 and the next 4 is the tiny increase in distance they have to travel to get to their patch?
DongTanks
Profile Joined January 2010
Singapore15 Posts
Last Edited: 2010-01-07 11:58:43
January 07 2010 11:48 GMT
#8
As a physicist I'd like to see some error analysis/uncertainties from multiple runs of the data. The LRAC numbers in particular look too close to be called definitive in comparison to the data of the SRAC. Also I'm sort of uncomfortable with how you define Average Mineral Spent/Worker, so if you could explain your methodology in a later post that would be awesome.

Also, if you want to improve your runs (or perhaps even automate them) you could potentially try via UMS maps.


Oops... I didn't do multiple runs of the data and I didn't include uncertainties because this is really for an ungraded project in college.
Thanks for the suggestions, but I think I will prefer spending time playing the game rather than doing this whole experiments again DX (dead)
Also, regarding the LRAC, I had the intention to run the experiment again because...... I just do not have the apm to put all workers from all bases to mine at the same time.... but deadline was pressing and what I posted above is basically what I submitted (sigh...). However I think the argument is there (without the erroneous data) through logical thinking. And I believe you can still see the trend of the curve if the points are plotted, though it could be just luck that they are in the shape they should be.
One may not be gosu, but passion alone makes him a Starcraft player.
DongTanks
Profile Joined January 2010
Singapore15 Posts
January 07 2010 11:53 GMT
#9
How can 4 workers be that much more efficient than 8 when the only difference between them is the tiny increase in distance they have to travel to get to their patch?


That's why I said 'DO NOT take these readings as standards'....
I am really sorry but I just need to show some readings to support my arguments. The minimum I'll go is to let the data shows some kind of trend that supports my graphs.
One may not be gosu, but passion alone makes him a Starcraft player.
Gretorp
Profile Blog Joined September 2008
United States586 Posts
January 07 2010 15:57 GMT
#10
Very interesting and cool stuff. It'd be interesting to see the dynamics of time and how saturation is affected by depletion. I understand these graphs are based off of X amount of workers in the initial phase, but a big question would also be how the graphs change as the scvs start to scale to the number. I suppose it will be left to a project in the future sometime though :-)

Great stuff regardless.

Just a note by the way. I use to do these tests for maps to test mineral saturations and mining analysis as well. From your text, I see you used a stopwatch. What I use to do is go to single player, turn on all my cheats and kill the computer immediately. Then I'd make sure all the minerals were the same number, and I'd start mining the respective bases. For example, destination, i'd kill the computer, make all the mineral numbers the same in the computer base since they mined, then i'd get 24 scvs to go mine. I'd leave it on(using windows mode) and surf the web or do whatever, maybe even go to sleep! Then I'd look at the replay and note how many minerals were mined just before the first patch was empty, and count total amount of minerals mined, and i'd track how long the replay was on minus the time when the initial scvs started working. My assumptions while doing this would be things unique to destination pathing, 8 mineral patches, SCVs mining(others path the same).
d3 is correct however and you need duplication and statistical accuracy when you're finalizing your projects, just for future reference. 30 times generally implies safe statistical accuracy.
I love your analysis though:-) great work
I am Unheard Change
Piy
Profile Blog Joined January 2008
Scotland3152 Posts
January 07 2010 16:22 GMT
#11
So what, there should be a noticeable improvement in prodction efficiency if you have 72 SCV's when you're at 3 bases as opposed to 60-65, which is the current standard number?
My. Copy. Is. Here.
RaGe
Profile Blog Joined July 2004
Belgium9947 Posts
January 07 2010 16:39 GMT
#12
haha, this has been researched many times, and 23/24 workers is always the result they get as optimal for 8 patch expansions
Moderatorsometimes I get intimidated by the size of my right testicle
Impervious
Profile Blog Joined March 2009
Canada4199 Posts
January 07 2010 19:12 GMT
#13
Looking at the graph of the SRAC, there is very little change in the effectiveness of the mining when you are near that point (ie, the tangent there is nearly zero).

So, in game terms, even if you aren't at the exact 24 workers/expansion, but you are close (under if you have a lot of expansions, over if you are planning on making a new expansion), you will be in a nearly ideal situation. I don't think it's even possible to model the ideal game situation.....

Also, because these results used SCVs, this is the data for Terran. Using Probes, you would find a different number (although probably very close to 24, maybe 23 or 25). Using Zerg, the number would be lower. Trials with all 3 races would be necessary to determine what number is most effective for each race.

Awesome work though. Too bad you aren't going to share everything.....
~ \(ˌ)im-ˈpər-vē-əs\ : not capable of being damaged or harmed.
Crt
Profile Joined November 2009
247 Posts
January 07 2010 19:47 GMT
#14
if you want to further your research, in addition to an economic curve, have attack (damage/second) and defense curve with basic units.

the point is to find a balance on when to produce units and enough damage pts to defend against rushes.

Best done with Excel.
Comeh
Profile Blog Joined July 2008
United States18918 Posts
January 07 2010 19:58 GMT
#15
A fun little read for me. (man oh man, am I not ready to go back to college).
May I ask for what class this is for? As an Econ major, I'm just curious .
ヽ(⌐■_■)ノヽ(⌐■_■)ノヽ(⌐■_■)ノヽ(⌐■_■)ノヽ(⌐■_■)ノヽ(⌐■_■)ノDELETE ICEFROGヽ(⌐■_■)ノヽ(⌐■_■)ノヽ(⌐■_■)ノヽ(⌐■_■)ノヽ(⌐■_■)ノヽ(⌐■_■)ノヽ(
Xeofreestyler
Profile Blog Joined June 2005
Belgium6771 Posts
January 07 2010 20:09 GMT
#16
The question now is: can BW API be used to lower the optimal number ?
Graphics
Zona
Profile Blog Joined May 2007
40426 Posts
January 08 2010 13:22 GMT
#17
On January 08 2010 05:09 Xeofreestyler wrote:
The question now is: can BW API be used to lower the optimal number ?

I expect so. By taking into account worker positioning and how long a mineral patch has until it is free for mining by another worker, there should be minimal wandering time. It's something I have been planning to code once I have some free time.
"If you try responding to those absurd posts every day, you become more damaged. So I pay no attention to them at all." Jung Myung Hoon (aka Fantasy), as translated by Kimoleon
ghostWriter
Profile Blog Joined January 2009
United States3302 Posts
January 08 2010 13:50 GMT
#18
This was very interesting. I always keep making workers, but it seems that I'm overproducing.
Sullifam
Impervious
Profile Blog Joined March 2009
Canada4199 Posts
January 08 2010 17:13 GMT
#19
On January 08 2010 22:22 Zona wrote:
Show nested quote +
On January 08 2010 05:09 Xeofreestyler wrote:
The question now is: can BW API be used to lower the optimal number ?

I expect so. By taking into account worker positioning and how long a mineral patch has until it is free for mining by another worker, there should be minimal wandering time. It's something I have been planning to code once I have some free time.


That would be horrible to try to code - the pathfinding issues would be difficult to compensate for.....
~ \(ˌ)im-ˈpər-vē-əs\ : not capable of being damaged or harmed.
ZenDeX
Profile Blog Joined May 2008
Philippines2916 Posts
January 09 2010 17:09 GMT
#20
How do I know if I have 24 workers on my mineral line?
1 2 3 Next All
Please log in or register to reply.
Live Events Refresh
Replay Cast
10:00
Galaxy Open Cup Season 1
CranKy Ducklings156
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Harstem 419
StarCraft: Brood War
Rain 5904
BeSt 5588
Mini 811
Pusan 620
Zeus 586
Light 416
Larva 416
Rush 352
firebathero 333
EffOrt 304
[ Show more ]
Mind 253
sSak 70
JulyZerg 53
Shine 26
Icarus 22
scan(afreeca) 19
NaDa 19
Movie 17
yabsab 11
Noble 7
Bale 7
Dota 2
qojqva2939
XaKoH 468
XcaliburYe350
Gorgc187
canceldota129
League of Legends
Dendi1054
Counter-Strike
x6flipin684
sgares581
byalli276
allub212
PGG 73
Super Smash Bros
Mew2King114
Other Games
B2W.Neo1764
singsing1518
DeMusliM395
crisheroes347
Fuzer 253
Pyrionflax174
SortOf126
Lowko113
markeloff69
Trikslyr31
ArmadaUGS23
Organizations
Other Games
gamesdonequick3693
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• Berry_CruncH335
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos907
Upcoming Events
WardiTV European League
4h 12m
ShoWTimE vs sebesdes
Percival vs NightPhoenix
Shameless vs Nicoract
Krystianer vs Scarlett
ByuN vs uThermal
Harstem vs HeRoMaRinE
PiGosaur Monday
12h 12m
uThermal 2v2 Circuit
1d 4h
Replay Cast
1d 12h
The PondCast
1d 22h
WardiTV European League
2 days
Replay Cast
2 days
Epic.LAN
3 days
CranKy Ducklings
3 days
Epic.LAN
4 days
[ Show More ]
CSO Contender
4 days
BSL20 Non-Korean Champi…
4 days
Bonyth vs Sziky
Dewalt vs Hawk
Hawk vs QiaoGege
Sziky vs Dewalt
Mihu vs Bonyth
Zhanhun vs QiaoGege
QiaoGege vs Fengzi
Sparkling Tuna Cup
4 days
Online Event
5 days
BSL20 Non-Korean Champi…
5 days
Bonyth vs Zhanhun
Dewalt vs Mihu
Hawk vs Sziky
Sziky vs QiaoGege
Mihu vs Hawk
Zhanhun vs Dewalt
Fengzi vs Bonyth
Esports World Cup
6 days
ByuN vs Astrea
Lambo vs HeRoMaRinE
Clem vs TBD
Solar vs Zoun
SHIN vs Reynor
Maru vs TriGGeR
herO vs Lancer
Cure vs ShoWTimE
Liquipedia Results

Completed

2025 ACS Season 2: Qualifier
RSL Revival: Season 1
Murky Cup #2

Ongoing

JPL Season 2
BSL 2v2 Season 3
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Jiahua Invitational
BSL20 Non-Korean Championship
Championship of Russia 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters

Upcoming

CSL Xiamen Invitational
CSL Xiamen Invitational: ShowMatche
2025 ACS Season 2
CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
BSL Season 21
K-Championship
RSL Revival: Season 2
SEL Season 2 Championship
uThermal 2v2 Main Event
FEL Cracov 2025
Esports World Cup 2025
Underdog Cup #2
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
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 © 2025 TLnet. All Rights Reserved.