logo
Published on

The Optimality Equation

Authors

Optimal Allocation

Going to an extreme (all-in on one side) is usually a bad idea.

But it's not always about being "perfectly balanced" either.

Real progress is about optimal allocation under constraints.

A simple equation (Quality × Quantity)

Let quality=x\text{quality} = x and quantity=y\text{quantity} = y.

You'll usually have a fixed budget of energy or time which means when you increase xx you will decrease yy, this constraint can be demonstrated by this equation:

x+y=100x + y = 100

An output that you want is usually the product of the two (i.e. quality x quantity):

output=xy\text{output} = xy

Take a look at these output examples:

  • x=90,y=10output=900x=90,\,y=10 \rightarrow \text{output}=900 (Perfectionism, low volume)
  • x=60,y=40output=2400x=60,\,y=40 \rightarrow \text{output}=2400
  • x=50,y=50output=2500x=50,\,y=50 \rightarrow \text{output}=2500 (Maximum Output)
  • x=20,y=80output=1600x=20,\,y=80 \rightarrow \text{output}=1600
  • x=1,y=99output=99x=1,\,y=99 \rightarrow \text{output}=99 (Spamming garbage)

You can see that extremes fail here.

Pushing xx too high forces yy too low, and the output drops.

Notice that y=100xy = 100 - x, therefore the output becomes a function of xx:

f(x)=x(100x)=100xx2f(x) = x(100-x) = 100x - x^2

Setting the derivative to zero (f(x)=1002x=0)\left(f'(x) = 100 - 2x = 0\right) gives us x=50x=50.

Meaning: if output is xyxy (weights are equal), an equal split is optimal.

Raising the base

If you want both quality and quantity to increase, you can't do it while x+y=100x+y=100. You have to increase the base constraints:

x+y=BBx and yx+y=B \quad \Rightarrow \quad B \uparrow \Rightarrow x \uparrow \text{ and } y \uparrow

This is what "improvement" really is. You aren't just reallocating effort; you are expanding the budget through better tools/skills and higher leverage.

When quality matters more

Sometimes quality can have more weight than quantity. We can model this by changing the output equation like so:

output=x2y,x+y=100\text{output} = x^2y,\quad x+y=100

Here, quality (xx) is squared, making it "twice as important" as quantity (yy).

Substitute y=100xy=100-x and differentiate:

f(x)=x2(100x)=100x2x3f(x) = x^2(100-x) = 100x^2 - x^3
f(x)=200x3x2=x(2003x)f'(x) = 200x - 3x^2 = x(200 - 3x)

Setting this to zero gives the critical point:

x=200366.7x=\frac{200}{3} \approx 66.7
y33.3y \approx 33.3

Notice the ratio:

x=2yx = 2y

Because quality was squared (x2)\left(x^2\right) and quantity was linear (y1)\left(y^1\right), the optimal allocation is a 2:12:1 split. The math mirrors the priority.

It is not "balanced" (50/50), but it is optimal.

More than 2 variables

Real life usually have more than just 22 variables:

x+y+z=Bx+y+z = B

But the principle still holds:

  1. Don't maximize one variable at the expense of zeroing out the others.
  2. Align allocation with impact. If xx has the highest exponent (impact), allocate the most resources there, but do not neglect yy and zz.

Don’t chase extremes. Find the optimal allocation, then raise the base.\textbf{Don’t chase extremes. Find the optimal allocation, then raise the base.}