Here's something I don't get about comparative advantage.
The implied advice, as far as I understand it, is to check which good you have a comparative advantage in producing, and offer that good to the market.
But suppose that there are a lot more goods and a lot more participants in the market.
For any one individual, given fixed prices and supply of everyone else, it sounds like we can formulate the production and trade strategy as a linear programming problem:
OK. So we can solve this as a linear program.
But... linear programs don't have some nice closed-form solution. The simplex algorithm can solve them efficiently in practice, but that's very different from an easy formula like "produce the good with the highest comparative advantage".
And that's just solving the problem for one player, assuming the other players have fixed strategies. More generally, we have to anticipate the rest of the market as well. I don't even know if that can be solved efficiently, via linear programming or some other technique.
Is "produce where you have comparative advantage" really very useful advice for more complex cases?
Wikipedia starts out describing comparative advantage as a law:
The law of comparative advantage describes how, under free trade, an agent will produce more of and consume less of a good for which they have a comparative advantage.[1]
But no precise mathematical law is ever stated, and the law is only justified with examples (specifically, two-player, two-commodity examples). Furthermore, I only ever recall seeing comparative advantage explained with examples, rather than being stated as a theorem. (Although this may be because I never got past econ 101.)
This makes it hard to know what the claimed law even is, precisely. "produce more and consume less"? In comparison to what?
One spot on Wikipedia says:
Skeptics of comparative advantage have underlined that its theoretical implications hardly hold when applied to individual commodities or pairs of commodities in a world of multiple commodities.
Although, without citation, so I don't know where to find the details of these critiques.
I once had a discussion with Scott G and Eli Tyre about this. We decided that the "real thing" was basically where you should end up in the complicated worker/job optimization problem, and there were more or less two ways to try and approximate it:
Economists say free trade is good because of "comparative advantage". But what is comparative advantage? Why is it good?