Published January 2, 2026· 3 min read

Optimization Is Just Rewards and Penalties

Ashutosh Singhai
Ashutosh Singhai
Engineering for Public Health @ ARTPARK, IISc

Most real problems are not about finding a solution.

They are about choosing the best one.

You want the cheapest option, the fastest route, the most accurate result, or the least wasteful plan. But there are too many possibilities to check one by one.

So instead of asking “Which option is best?”, we ask a simpler question:

“If I change something slightly, did things get better or worse?”

If things improve, we keep moving in that direction.
If they get worse, we move away.

This simple idea is optimization.

It doesn’t search for perfection.
It improves step by step, guided by feedback.

And that feedback must be a single number — one number that tells us whether a change helped or hurt.

Rewards and Penalties Are All the Optimizer Sees

Anything that makes the number go up gets encouraged.
Anything that makes the number go down gets discouraged.

That’s it.

There is no understanding of meaning, importance, or intent.
Only direction.

When something consistently improves the number, the system keeps doing more of it.
When something hurts the number, the system learns to avoid it.

An increase feels like a reward.
A decrease feels like a penalty.

This is not a metaphor — it is literally how optimization works.

The entire problem is encoded in how strongly different choices raise or lower that one number.

If you want a behavior to appear, you reward it.
If you want a behavior to disappear, you penalize it.

Everything else in optimization is just a way of expressing those rewards and penalties precisely.

Rewards Are Just Positive Contributions

A reward is anything that makes the number better.

In a maximization problem, that simply means: it increases the value we’re trying to maximize.

If we write the number as

then increasing a improves the score by 3 units, and increasing b improves it by 5.

The system doesn’t know what a or b represent.
It only sees that increasing them makes the number larger.

So it prefers larger values.

This is why rewards feel natural and intuitive:

  • bigger contribution → stronger pull
  • higher coefficient → stronger preference

If one choice improves the score twice as much as another, the system will chase it twice as hard.

That’s not strategy.
That’s arithmetic.

This is also why optimization often surprises people.

If the numbers don’t reflect your real priorities, the solution won’t either.
The system will faithfully maximize the score you wrote — not the outcome you meant.

Penalties Push Solutions Away

A penalty is just the opposite of a reward.

Instead of increasing the number, it pulls it down.

If we write:

then increasing c makes the score worse.
Every unit of c costs 10 points.

The system doesn’t know that c is “bad” in any moral sense.
It only sees that increasing ccc hurts the score.

So it avoids it.

Small penalties create mild discouragement.
Large penalties create strong resistance.

And very large penalties send a clear message:

“Do this only if there is no other way.”

This is the key idea.

Penalties don’t forbid behavior.
They make behavior expensive.

If avoiding the penalty is possible, the system will avoid it.
If avoiding it is impossible, the system accepts the cost — and that tells you something important about the problem.

When the Penalty Is Huge

Now imagine the penalty is not just large, but overwhelmingly large.

Compared to that last term, everything else is tiny.

Increasing a or b helps a little.
Increasing c destroys the score.

Even a very small amount of ccc hurts more than any reasonable increase in a or b can help.

So the system behaves in a very predictable way:

  • If it can make c = 0 it will.
  • If it cannot, it accepts the loss — because there is no alternative.

That’s not cleverness.
That’s survival.

A huge penalty acts like a threat:

“Avoid this at all costs — unless avoiding it is impossible.”

Why This Idea Shows Up Everywhere

Once you see optimization as rewards and penalties, many things stop feeling mysterious.

When we want something to happen, we reward it.
When we want something to disappear, we penalize it.
When we really don’t want it, we penalize it heavily.

This logic shows up again and again:

  • Encouraging good performance
  • Discouraging unnecessary complexity
  • Allowing flexibility without losing control

Sometimes penalties are gentle, shaping behavior softly.
Sometimes they are harsh, forcing a choice only when there is no alternative.

The math changes from field to field, but the idea doesn’t.

Optimization works not because the methods are clever,
but because the incentives are clear.

Final Thought

Optimization is not about finding clever tricks or perfect formulas.

It is about deciding:

  • what should be rewarded,
  • what should be penalized,
  • and how strongly.

Once that is done well, the solution almost finds itself.