<p><strong>Optimization problems</strong></p>
<p>Some of the problems you mention do not seem that simple to me, e.g., &quot;<em>farmers choosing between different crops to grow based on expected harvest and market price</em>&quot; can be mathematically quite difficult depending on the distribution.</p>
<p>In case you want a though one, have a look at the paper <a href="https://www.pnas.org/content/114/28/7202" rel="noreferrer">Economics and computer science of a radio spectrum reallocation</a>, it has an entire section on &quot;Feasibility Checking.&quot;</p>
<p>Unfortunately any example will have to 'thread the needle':</p>
<ul>
<li>it cannot be too simple mathematically,</li>
<li>it should be detailed enough to be considered real-life,</li>
<li>and it should be simple enough that you can explain it in a relatively short amount of time to non-experts.</li>
</ul>
<p>It is unlikely that any example will meet all of the above conditions.</p>
<p><strong>Optimization in economics</strong></p>
<p>Interestingly, while economists frequently rely on the assumption that optimization occurs in their models, <em>in my experience</em> they rarely face difficult &quot;real-life&quot; optimization problems themselves.* Difficult optimization problems are handled by algorithms and people who specialize in these difficult algorithms tend to be computer scientists.</p>
<p>What applied mathematical economists (usually) do is they choose a model that fits the available data best. (In a sense this is also an optimization problem that involves minimizing the sum of least squares or some similar indicator.) Then they study the parameters of the model (or pass it on to others who will study it) and try to see if there is anything policymakers (government agencies, CEOs, etc.) can learn from it; are there bottlenecks in a process somewhere, are there areas that require more attention, and so on.</p>
<p><strong>Aren't there any better examples though</strong></p>
<p>Above I tried to show that while it is present to some degree, mathematical difficulty is not the main issue that applied economists focus on. The reason is that in order to &quot;optimize&quot; something you usually need to learn about the thing. Some of the big challenges of &quot;<em>Real Life Examples of Optimization in Economics</em>&quot; are</p>
<ol>
<li>Getting high quality data in a well structured form.</li>
</ol>
<p>What exactly are the constraints of your problem, what probabilistic distributions are you facing, and what are the parameters of your goal function? Part of the task is translating the real life situation into a mathematical model and estimating its parameters.</p>
<ol start="2">
<li>Setting a clear objective function.</li>
</ol>
<p>Is there an actual clear cut objective function, or are there simply nebulous general objectives? E.g., <em>we want to improve short-term profitability while maintaining brand-loyalty and laying foundations for future growth</em>? Even maximizing public welfare requires that you make extremely reductionist assumptions. Part of the task is translating the non-mathematical goals into an optimizable function.</p>
<hr />
<p>*Yes, in theoretical papers the optimization problem can be difficult, e.g., most multi-actor multi-stage games with non-finite action sets will be quite difficult to solve, but I don't think these qualify as real life. Though I always liked the von Neumann quote</p>
<p>&quot;<em>If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.</em>&quot;</p>

CC BY-SA 4.0
2022-01-24T07:16:06.663Z
Thank you so much for your answer! I will have to read it more carefully! I know that the farmer problem can be quite difficult as more variables and constraints are added - I guess I was looking for something more from the finance and economics world, in which some strategies on investing were purely decided based on optimizing a series of objective functions. This is actually an example I would like to show my friend who was asking me if the "only real optimization problems are in the industries computer science, math and machine learning".
stats_noob
CC BY-SA 4.0
2022-01-24T07:17:19.733Z
I would like to show them that optimization is relevant in economics - when we tried to find examples of optimization in economics, all we could find were examples like the farmer example. They thought that these examples are oversimplifications and not really relevant in real life. Thus, I am trying to find a more realistic example of optimization in real life from economics/finance. Perhaps you could recommend some papers/references if you know of any? Thank you so much!
stats_noob
CC BY-SA 4.0
2022-01-24T07:18:53.423Z
@stats555 I recommended the one on the spectrum auction. Also, wait for some other answers; there are likely to be different perspectives from people who had different experiences.
Giskard
CC BY-SA 4.0
2022-01-24T07:10:59.993Z
2022-01-24T19:54:08.293Z
2022-01-24T19:54:08.293Z
Giskard
<p>So one thing to keep in mind is that the &quot;simple&quot; examples you're looking at are very much real-world.  Any particular optimization decision needs to be simple enough for the people making it to understand what they're doing.</p>
<p>Where the complexity comes from is the further interaction between the simple elements.  If what feed to use to get the cheapest source of nutrition for his cattle were the only choice the farmer had to make it would, indeed, be extremely simple.  But it's not.</p>
<p>For example, when getting a herd through the winter, the temperature of their drinking water has a significant effect on how many calories they burn to stay warm.  So where's the breakover point between spending more on feed vs on heating the water supply?  Does the quality of their bedding have a similar impact?  Does the salt content of their food affect their water intake such that balancing these equations becomes fiendishly difficult?  Is there a third, cheaper feed he should be using to make up the raw caloric deficit for cold weather that won't affect the nutritional balance?</p>
<p>So it's not that any of the individual optimizations are that difficult (though they may take specialized knowledge of the domain in question) its that the complexity exponentiates with every addition to the things you're optimizing for.</p>
<p>A good example can be found in &quot;I, Pencil&quot;, by Leonard Read, wherein he analyzes the optimization tree for producing the &quot;correct&quot; number of pencils.</p>
<p>To pull an example, a pencil is made partly of wood.  To get the wood, you need lumberjacks.  How many lumberjacks to cut how many trees? How much coffee do you need to get them out of bed and working in the morning?  How much bacon?  How many eggs?  How many axes are required for them to chop with?  Oh dear...  Axes take steel...  How many miners to mine the ore?  How many pickaxes, how many carts, how many smelters, how many forges?  How many cargo containers to move the ore from the mine to the smelter, the steel from the smelter to the forge, the axes from the forge to the lumberjack camp?  How much additional steel to build the cargo vehicles?  How much diesel to power them?  I could go on...</p>
<p>Each step, viewed individually, seems quite simple to sort out.  And it is.  Business managers and entrepreneurs do it all the time.  But as you zoom out you see that the output of one optimization affects the input of another, which affects a third, and a fourth, and the whole thing turns into a big, continuous feedback loop and then you might as well be looking at multivariable calculus.</p>
<p>That essay, and a few others like it, do a good job of showing where the complexity comes from and just how crazily-interconnected it all gets.</p>
<p>If you're looking for actual math in your examples, your best bet is probably to wander over and talk to the Finance folks since converting real-world optimization problems into math and then solving them is pretty much what they do for a living.  But even there, you'll notice that they try to chop them into manageable chunks because how much torture you put yourself through to push your accuracy past the third or fourth decimal place is also a thing you should be optimizing.</p>

CC BY-SA 4.0
2022-01-25T12:44:22.617Z
I like your explanation, but I think this example is the opposite of what most text books assume and why they fail. They present some kind of total world optimization and have to tune down the complexity of their world to unrealistic levels. Then a complex number cruncher is possible. In the real world, there is no total optimization but people optimize their individual part, often by heuristics, and will incrementally adjust to reality.
Manziel
CC BY-SA 4.0
2022-01-25T16:58:51.903Z
@Manziel  Oh you've noticed that have you?  Welcome to the Austrian school.
Perkins
CC BY-SA 4.0
2022-01-24T21:15:20.850Z
2022-01-24T21:15:20.850Z
Perkins
<p>The NFL uses optimization when scheduling.</p>
<blockquote>
<p>In 2013, the NFL began using Gurobi’s mathematical optimization solver to tackle this incredibly complex scheduling problem. With mathematical optimization, NFL planners can generate and analyze more than 50,000 feasible schedules despite adding more constraints to the process every year. Now – instead of spending months manually creating a single feasible schedule – the NFL planners can focus on evaluating and comparing completed schedules to determine which should be selected as the final schedule.</p>
</blockquote>
<p><a href="https://www.gurobi.com/case_study/nfl-english/#:%7E:text=In%202013%2C%20the%20NFL%20began,to%20the%20process%20every%20year." rel="nofollow noreferrer">Whitepaper</a></p>

CC BY-SA 4.0
2022-01-24T23:19:25.077Z
I also know that MLB and some NCAA conferences use optimization to set their schedules because I personally know the person that used to run the models. I didn't include in my answer because I don't have a link to back up this statement.
gomory-chvatal
CC BY-SA 4.0
2022-01-25T08:59:31.570Z
A nice optimization problem, but is this related to economics?
Giskard
CC BY-SA 4.0
2022-01-25T16:28:25.783Z
Some of the factors they consider are the profitability of schedule based on different TV markets and how the events will affect local businesses given other events happening in the same area. The OP listed farmers rotating crops as an example, scheduling events is the same basic problem with a twist.
gomory-chvatal
CC BY-SA 4.0
2022-01-24T23:13:03.020Z
2022-01-25T16:29:55.690Z
2022-01-25T16:29:55.690Z
gomory-chvatal
<p>One could use simple games of resource management, this way the scope is fairly finite.  I do research in digital games and economics, which students tend to be interested in. Some relevant papers are linked below.</p>
<p><a href="https://link.springer.com/article/10.1007/s11528-010-0451-y" rel="nofollow noreferrer">How massive multiplayer online games incorporate principles of economics, Joshua H. Barnett &amp; Leanna Archambault, 2014</a></p>
<p><a href="https://scholar.google.com/scholar_url?url=https://idp.springer.com/authorize/casa%3Fredirect_uri%3Dhttps://link.springer.com/content/pdf/10.1007/s10614-014-9480-5.pdf%26casa_token%3D9o_IWT86NecAAAAA:v7VsdOEuv4FyzeyP0UcNfwTeZKZDLKwkUMzvzASS6CVSJEuEl740yvuD7bzGBzQvS9o3mM4WZdO9Aurx&amp;hl=en&amp;sa=T&amp;oi=gsb-ggp&amp;ct=res&amp;cd=0&amp;d=12665517238196765709&amp;ei=L7zuYa73BKWTy9YP8KieuAQ&amp;scisig=AAGBfm09GDjf8rwEolmxG8IclytmYDVH1A" rel="nofollow noreferrer">The Diablo 3 Economy: An Agent Based Approach, Makram El-Shagi &amp; Gregor von Schweinitz, 2014</a></p>
<p><a href="https://ieeexplore.ieee.org/abstract/document/8490444" rel="nofollow noreferrer">Standard Economic Models in Nonstandard Settings–StarCraft: Brood War, BS Weber, 2018</a> This paper is about Cobb-Douglass and Tit-for-Tat in a resource management game of conflict.</p>
<p><a href="https://ieeexplore.ieee.org/abstract/document/9648005" rel="nofollow noreferrer">Deployment of Causal Effect Estimation in Live Games of Dota 2, AH Christiansen, E Gensby, and BS Weber 2021</a> This one is about IV, control function approach, and we actually test if people prefer unbiased predictors to biased ones in a small pilot group. They do!</p>

CC BY-SA 4.0
2022-01-24T14:48:57.033Z
2022-01-25T03:46:32.870Z
2022-01-25T03:46:32.870Z
RegressForward
<p>I am currently working on a software solution that aims at calculating orders for retail distribution centers.</p>
<p>As context, we all shop at supermarkets and drugstores (so-called &quot;points of sale&quot;, POS). These POS get their supply typically from large distribution centers (DCs), which are also part of the retailer. These DCs, in turn, place orders for product at consumer packaged goods (CPG) companies, wholesalers, or other suppliers.</p>
<p>The order calculation at the retailer's DC is highly complex.</p>
<ul>
<li><p>First off, the main input is a forecast of the stores' demand, which in itself is very hard to forecast (stores' demand to the DC is governed by end consumer demand at stores, which is <a href="https://stats.stackexchange.com/a/514362/1352">hard to forecast in itself</a>, and which then gets filtered through order optimization <em>at the store</em>... and then overwritten by the store manager, because he feels like it).</p>
</li>
<li><p>Second, the objective function is highly fuzzy. Ideally, we would optimize total costs or margin. But while we know purchasing prices (and rebate structures, and time-varying purchasing prices because of promotions, are complex in themselves) and sales prices, we only have the vaguest inkling of handling costs at the DC, or of the costs of stockouts. Sure, we are not selling the product we are out of because of an order that was too low - but (a) how much demand are we losing (we are not seeing it!), and (b) at what point does the end customer stop coming to our store?</p>
<p>Retailers typically then work with proxy objectives, like minimum service levels (which, again, depend on forecasts, so they are hard to pin down), ranges of coverage or other KPIs.</p>
</li>
<li><p>Third, the constraints are complicated. You can only order in specific units of measure, like cartons, layers or full pallets. You may be able to mix products on a pallet - or not. If you can mix, there are stackability constraints. Trucks must be full, because of agreements with the suppliers. (See above on nobody knowing the true costs of half-full trucks, so we need to fall back to such agreements.) Except that some suppliers will happily send you just five pallets, by using a 3rd party logistics provider. Except that if they do so, they cannot guarantee delivery by a particular date, because they need to take account of when that 3rd party logistics provider has a truck going your way - so we have a chicken-and-egg problem in calculating order amounts.</p>
</li>
</ul>
<p>Also, I haven't mentioned shelf lives, the generally horrendous quality of the data in IT systems, budgets, contractually agreed minimum order values across a whole quarter or a year, multiple sources of supply (you can get your apples from different farmers' cooperatives), substitution effects (supplier A may be out of apples, but supplier B can sell you some, except that you don't have anything else to order from B but that half truck of apples, so what do you fill that truck up with?). Nor direct end consumer demand facing the DC, because that DC may fulfill your online orders. Except that maybe today it's fulfilled out of a different DC for some reason. Which we may need to keep in mind in tomorrow's forecasting run: clean the historical time series.</p>
<p>Bottom line: there is a huge amount of economic optimization going on just to make sure your local supermarket is stocked, or your online order can be fulfilled. Most of it is incredibly complex, and there is an art to knowing where to push for exactness and where to use approximations (and what kind).</p>

CC BY-SA 4.0
2022-01-25T10:45:58.297Z
2022-01-25T10:45:58.297Z
Stephan Kolassa
<p>I am trying to find some real life (&quot;non trivial&quot;) examples of optimization related to economics.</p>
<p>So far, most of the examples that I come across are from introductory economics textbooks involving some basic example about farmers choosing between different crops to grow based on expected harvest and market price; or some similar example of a factory in which two different machines manufacture different types of items at different speeds, and again based on expected consumer demand, the manager at the factory is expected to decide how much of each machine's workload should be assigned to which type of item. Sometimes, there might be some constraints that need to be taken into consideration. Generally, these problems I come across can be solved using algebraic manipulation or through linear programming.</p>
<p>I posted an example of one of these problems below:</p>
<p><a href="https://i.sstatic.net/VrfUZ.png" rel="noreferrer"><img src="https://i.sstatic.net/VrfUZ.png" alt="enter image description here" /></a></p>
<p>Although these types of problems are great examples to familiarize one's self with economics and optimization, the context of these problems generally appear as &quot;too simple&quot;, and instantly one begins to think that these are big oversimplifications of real world economics problems - and such oversimplified problems likely have little relevance in the real world. I am trying to look for some examples of optimization problems in economics in more realistic situations such as in banks, investment firms, resource allocation in national budgets, etc.</p>
<p><strong>Can someone please suggest some more realistic and complex examples of optimization problems within an economics context? Perhaps some real life examples involving allocation of resources in markets, investment risks, non-convex objective functions with many complicated constraints, etc. ?</strong></p>
<p>It would be ideal if the references for these problems could be provided as well that fully explain the environment and context in which these optimization problems appear.</p>
<p>Can someone please suggest something?</p>
<p>Thanks!</p>

CC BY-SA 4.0
2022-01-24T19:46:33.417Z
I get what appear to be good result by using the search terms "operations research case studies".  For example, here is a book that spends approximately 15-25 pages on each case: https://link.springer.com/book/10.1007/978-1-4939-1007-6
Ben Voigt
CC BY-SA 4.0
2022-01-24T19:48:48.337Z
Adding "finance" to the above search gives results such as https://som.yale.edu/centers/international-center-for-finance/icf-case-studies   Here you have problems facing banks and investment firms specifically represented.
Ben Voigt
CC BY-SA 4.0
2022-01-25T22:56:36.117Z
a comment as I'm not quite sure if this is what you mean, but I feel every mass produced consumer product faces optimization choices to lower cost of production. A recent HNQ example: https://retrocomputing.stackexchange.com/questions/23758/why-are-the-nintendo-64-memory-cards-batteries-soldered-on
BurnsBA
CC BY-SA 4.0
2022-01-26T03:14:40.290Z
Have you considered the case of agricultural trade between the US and Mexico before and after NAFTA? Suppose we group crops into two classifications: labor-intensive (ie tomatoes) and machinery-intensive (ie corn). Because the US has more access to machinery, it will have an advantage in corn. Similarly, Mexico will have the advantage in tomatoes. I don't have numbers handy, but I'm sure you could find some quickly if you deem this worthwhile.
Forgot the Jacobian
CC BY-SA 4.0
2022-01-26T15:32:09.480Z
See https://www.dunnhumby.com/ for many examples.   Eg how should a supermarket price own brand baked beans so as to get maximum margin over all baked bean sales.   (own brand often has lower margin per tin)
Ian Ringrose
<optimization>
Real Life Examples of Optimization in Economics
stats_noob
# Real Life Examples of Optimization in Economics

(Asked by: username_0 on 2022-01-24)

I am trying to find some real life ("non trivial") examples of optimization related to economics.

So far, most of the examples that I come across are from introductory economics textbooks involving some basic example about farmers choosing between different crops to grow based on expected harvest and market price; or some similar example of a factory in which two different machines manufacture different types of items at different speeds, and again based on expected consumer demand, the manager at the factory is expected to decide how much of each machine's workload should be assigned to which type of item. Sometimes, there might be some constraints that need to be taken into consideration. Generally, these problems I come across can be solved using algebraic manipulation or through linear programming.

I posted an example of one of these problems below:

[![enter image description here](https://i.sstatic.net/VrfUZ.png)](https://i.sstatic.net/VrfUZ.png)

Although these types of problems are great examples to familiarize one's self with economics and optimization, the context of these problems generally appear as "too simple", and instantly one begins to think that these are big oversimplifications of real world economics problems - and such oversimplified problems likely have little relevance in the real world. I am trying to look for some examples of optimization problems in economics in more realistic situations such as in banks, investment firms, resource allocation in national budgets, etc.

**Can someone please suggest some more realistic and complex examples of optimization problems within an economics context? Perhaps some real life examples involving allocation of resources in markets, investment risks, non-convex objective functions with many complicated constraints, etc. ?**

It would be ideal if the references for these problems could be provided as well that fully explain the environment and context in which these optimization problems appear.

Can someone please suggest something?

Thanks!

**Tags:** optimization
> **Comments:**
> **username_1**: I get what appear to be good result by using the search terms "operations research case studies".  For example, here is a book that spends approximately 15-25 pages on each case: https://link.springer.com/book/10.1007/978-1-4939-1007-6  
> **username_1**: Adding "finance" to the above search gives results such as https://som.yale.edu/centers/international-center-for-finance/icf-case-studies   Here you have problems facing banks and investment firms specifically represented.  
> **username_2**: a comment as I'm not quite sure if this is what you mean, but I feel every mass produced consumer product faces optimization choices to lower cost of production. A recent HNQ example: https://retrocomputing.stackexchange.com/questions/23758/why-are-the-nintendo-64-memory-cards-batteries-soldered-on  
> **username_3**: Have you considered the case of agricultural trade between the US and Mexico before and after NAFTA? Suppose we group crops into two classifications: labor-intensive (ie tomatoes) and machinery-intensive (ie corn). Because the US has more access to machinery, it will have an advantage in corn. Similarly, Mexico will have the advantage in tomatoes. I don't have numbers handy, but I'm sure you could find some quickly if you deem this worthwhile.  
> **username_4**: See https://www.dunnhumby.com/ for many examples.   Eg how should a supermarket price own brand baked beans so as to get maximum margin over all baked bean sales.   (own brand often has lower margin per tin)  

---

## 5 answers

### Answer by username_5 on 2022-01-24. Score: 9

**Optimization problems**

Some of the problems you mention do not seem that simple to me, e.g., "*farmers choosing between different crops to grow based on expected harvest and market price*" can be mathematically quite difficult depending on the distribution.

In case you want a though one, have a look at the paper [Economics and computer science of a radio spectrum reallocation](https://www.pnas.org/content/114/28/7202), it has an entire section on "Feasibility Checking."

Unfortunately any example will have to 'thread the needle':

* it cannot be too simple mathematically,
* it should be detailed enough to be considered real-life,
* and it should be simple enough that you can explain it in a relatively short amount of time to non-experts.

It is unlikely that any example will meet all of the above conditions.

**Optimization in economics**

Interestingly, while economists frequently rely on the assumption that optimization occurs in their models, *in my experience* they rarely face difficult "real-life" optimization problems themselves.\* Difficult optimization problems are handled by algorithms and people who specialize in these difficult algorithms tend to be computer scientists.

What applied mathematical economists (usually) do is they choose a model that fits the available data best. (In a sense this is also an optimization problem that involves minimizing the sum of least squares or some similar indicator.) Then they study the parameters of the model (or pass it on to others who will study it) and try to see if there is anything policymakers (government agencies, CEOs, etc.) can learn from it; are there bottlenecks in a process somewhere, are there areas that require more attention, and so on.

**Aren't there any better examples though**

Above I tried to show that while it is present to some degree, mathematical difficulty is not the main issue that applied economists focus on. The reason is that in order to "optimize" something you usually need to learn about the thing. Some of the big challenges of "*Real Life Examples of Optimization in Economics*" are

1. Getting high quality data in a well structured form.

What exactly are the constraints of your problem, what probabilistic distributions are you facing, and what are the parameters of your goal function? Part of the task is translating the real life situation into a mathematical model and estimating its parameters.

2. Setting a clear objective function.

Is there an actual clear cut objective function, or are there simply nebulous general objectives? E.g., *we want to improve short-term profitability while maintaining brand-loyalty and laying foundations for future growth*? Even maximizing public welfare requires that you make extremely reductionist assumptions. Part of the task is translating the non-mathematical goals into an optimizable function.

---

\*Yes, in theoretical papers the optimization problem can be difficult, e.g., most multi-actor multi-stage games with non-finite action sets will be quite difficult to solve, but I don't think these qualify as real life. Though I always liked the von Neumann quote

"*If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.*"

> **Comments:**
> **username_0**: Thank you so much for your answer! I will have to read it more carefully! I know that the farmer problem can be quite difficult as more variables and constraints are added - I guess I was looking for something more from the finance and economics world, in which some strategies on investing were purely decided based on optimizing a series of objective functions. This is actually an example I would like to show my friend who was asking me if the "only real optimization problems are in the industries computer science, math and machine learning".  
> **username_0**: I would like to show them that optimization is relevant in economics - when we tried to find examples of optimization in economics, all we could find were examples like the farmer example. They thought that these examples are oversimplifications and not really relevant in real life. Thus, I am trying to find a more realistic example of optimization in real life from economics/finance. Perhaps you could recommend some papers/references if you know of any? Thank you so much!  
> **username_5**: @stats555 I recommended the one on the spectrum auction. Also, wait for some other answers; there are likely to be different perspectives from people who had different experiences.  

---

### Answer by username_6 on 2022-01-24. Score: 5

So one thing to keep in mind is that the "simple" examples you're looking at are very much real-world. Any particular optimization decision needs to be simple enough for the people making it to understand what they're doing.

Where the complexity comes from is the further interaction between the simple elements. If what feed to use to get the cheapest source of nutrition for his cattle were the only choice the farmer had to make it would, indeed, be extremely simple. But it's not.

For example, when getting a herd through the winter, the temperature of their drinking water has a significant effect on how many calories they burn to stay warm. So where's the breakover point between spending more on feed vs on heating the water supply? Does the quality of their bedding have a similar impact? Does the salt content of their food affect their water intake such that balancing these equations becomes fiendishly difficult? Is there a third, cheaper feed he should be using to make up the raw caloric deficit for cold weather that won't affect the nutritional balance?

So it's not that any of the individual optimizations are that difficult (though they may take specialized knowledge of the domain in question) its that the complexity exponentiates with every addition to the things you're optimizing for.

A good example can be found in "I, Pencil", by Leonard Read, wherein he analyzes the optimization tree for producing the "correct" number of pencils.

To pull an example, a pencil is made partly of wood. To get the wood, you need lumberjacks. How many lumberjacks to cut how many trees? How much coffee do you need to get them out of bed and working in the morning? How much bacon? How many eggs? How many axes are required for them to chop with? Oh dear... Axes take steel... How many miners to mine the ore? How many pickaxes, how many carts, how many smelters, how many forges? How many cargo containers to move the ore from the mine to the smelter, the steel from the smelter to the forge, the axes from the forge to the lumberjack camp? How much additional steel to build the cargo vehicles? How much diesel to power them? I could go on...

Each step, viewed individually, seems quite simple to sort out. And it is. Business managers and entrepreneurs do it all the time. But as you zoom out you see that the output of one optimization affects the input of another, which affects a third, and a fourth, and the whole thing turns into a big, continuous feedback loop and then you might as well be looking at multivariable calculus.

That essay, and a few others like it, do a good job of showing where the complexity comes from and just how crazily-interconnected it all gets.

If you're looking for actual math in your examples, your best bet is probably to wander over and talk to the Finance folks since converting real-world optimization problems into math and then solving them is pretty much what they do for a living. But even there, you'll notice that they try to chop them into manageable chunks because how much torture you put yourself through to push your accuracy past the third or fourth decimal place is also a thing you should be optimizing.

> **Comments:**
> **username_7**: I like your explanation, but I think this example is the opposite of what most text books assume and why they fail. They present some kind of total world optimization and have to tune down the complexity of their world to unrealistic levels. Then a complex number cruncher is possible. In the real world, there is no total optimization but people optimize their individual part, often by heuristics, and will incrementally adjust to reality.  
> **username_6**: @Manziel  Oh you've noticed that have you?  Welcome to the Austrian school.  

---

### Answer by username_8 on 2022-01-24. Score: 5

The NFL uses optimization when scheduling.

> In 2013, the NFL began using Gurobi’s mathematical optimization solver to tackle this incredibly complex scheduling problem. With mathematical optimization, NFL planners can generate and analyze more than 50,000 feasible schedules despite adding more constraints to the process every year. Now – instead of spending months manually creating a single feasible schedule – the NFL planners can focus on evaluating and comparing completed schedules to determine which should be selected as the final schedule.

[Whitepaper](https://www.gurobi.com/case_study/nfl-english/#:%7E:text=In%202013%2C%20the%20NFL%20began,to%20the%20process%20every%20year.)

> **Comments:**
> **username_8**: I also know that MLB and some NCAA conferences use optimization to set their schedules because I personally know the person that used to run the models. I didn't include in my answer because I don't have a link to back up this statement.  
> **username_5**: A nice optimization problem, but is this related to economics?  
> **username_8**: Some of the factors they consider are the profitability of schedule based on different TV markets and how the events will affect local businesses given other events happening in the same area. The OP listed farmers rotating crops as an example, scheduling events is the same basic problem with a twist.  

---

### Answer by username_9 on 2022-01-24. Score: 5

One could use simple games of resource management, this way the scope is fairly finite. I do research in digital games and economics, which students tend to be interested in. Some relevant papers are linked below.

[How massive multiplayer online games incorporate principles of economics, Joshua H. Barnett & Leanna Archambault, 2014](https://link.springer.com/article/10.1007/s11528-010-0451-y)

[The Diablo 3 Economy: An Agent Based Approach, Makram El-Shagi & Gregor von Schweinitz, 2014](https://scholar.google.com/scholar_url?url=https://idp.springer.com/authorize/casa%3Fredirect_uri%3Dhttps://link.springer.com/content/pdf/10.1007/s10614-014-9480-5.pdf%26casa_token%3D9o_IWT86NecAAAAA:v7VsdOEuv4FyzeyP0UcNfwTeZKZDLKwkUMzvzASS6CVSJEuEl740yvuD7bzGBzQvS9o3mM4WZdO9Aurx&hl=en&sa=T&oi=gsb-ggp&ct=res&cd=0&d=12665517238196765709&ei=L7zuYa73BKWTy9YP8KieuAQ&scisig=AAGBfm09GDjf8rwEolmxG8IclytmYDVH1A)

[Standard Economic Models in Nonstandard Settings–StarCraft: Brood War, BS Weber, 2018](https://ieeexplore.ieee.org/abstract/document/8490444) This paper is about Cobb-Douglass and Tit-for-Tat in a resource management game of conflict.

[Deployment of Causal Effect Estimation in Live Games of Dota 2, AH Christiansen, E Gensby, and BS Weber 2021](https://ieeexplore.ieee.org/abstract/document/9648005) This one is about IV, control function approach, and we actually test if people prefer unbiased predictors to biased ones in a small pilot group. They do!


---

### Answer by username_10 on 2022-01-25. Score: 2

I am currently working on a software solution that aims at calculating orders for retail distribution centers.

As context, we all shop at supermarkets and drugstores (so-called "points of sale", POS). These POS get their supply typically from large distribution centers (DCs), which are also part of the retailer. These DCs, in turn, place orders for product at consumer packaged goods (CPG) companies, wholesalers, or other suppliers.

The order calculation at the retailer's DC is highly complex.

* First off, the main input is a forecast of the stores' demand, which in itself is very hard to forecast (stores' demand to the DC is governed by end consumer demand at stores, which is [hard to forecast in itself](https://stats.stackexchange.com/a/514362/1352), and which then gets filtered through order optimization *at the store*... and then overwritten by the store manager, because he feels like it).
* Second, the objective function is highly fuzzy. Ideally, we would optimize total costs or margin. But while we know purchasing prices (and rebate structures, and time-varying purchasing prices because of promotions, are complex in themselves) and sales prices, we only have the vaguest inkling of handling costs at the DC, or of the costs of stockouts. Sure, we are not selling the product we are out of because of an order that was too low - but (a) how much demand are we losing (we are not seeing it!), and (b) at what point does the end customer stop coming to our store?

  Retailers typically then work with proxy objectives, like minimum service levels (which, again, depend on forecasts, so they are hard to pin down), ranges of coverage or other KPIs.
* Third, the constraints are complicated. You can only order in specific units of measure, like cartons, layers or full pallets. You may be able to mix products on a pallet - or not. If you can mix, there are stackability constraints. Trucks must be full, because of agreements with the suppliers. (See above on nobody knowing the true costs of half-full trucks, so we need to fall back to such agreements.) Except that some suppliers will happily send you just five pallets, by using a 3rd party logistics provider. Except that if they do so, they cannot guarantee delivery by a particular date, because they need to take account of when that 3rd party logistics provider has a truck going your way - so we have a chicken-and-egg problem in calculating order amounts.

Also, I haven't mentioned shelf lives, the generally horrendous quality of the data in IT systems, budgets, contractually agreed minimum order values across a whole quarter or a year, multiple sources of supply (you can get your apples from different farmers' cooperatives), substitution effects (supplier A may be out of apples, but supplier B can sell you some, except that you don't have anything else to order from B but that half truck of apples, so what do you fill that truck up with?). Nor direct end consumer demand facing the DC, because that DC may fulfill your online orders. Except that maybe today it's fulfilled out of a different DC for some reason. Which we may need to keep in mind in tomorrow's forecasting run: clean the historical time series.

Bottom line: there is a huge amount of economic optimization going on just to make sure your local supermarket is stocked, or your online order can be fulfilled. Most of it is incredibly complex, and there is an art to knowing where to push for exactness and where to use approximations (and what kind).


---

