What is opportunity cost?
The value of the best alternative that you give up when you choose one option over another with limited resources.
Opportunity cost diagram example
Opportunity cost is what you lose by not choosing the next best option. It is not the money spent but the benefit foregone, and it applies to time and effort as well as cash. It matters because every choice with limited resources has a hidden price, and good decisions weigh it.
How it works
Resources are scarce, so using them for one purpose rules out others. The opportunity cost of a choice is the value of the most attractive alternative that was not taken. It can be larger or smaller than the visible price.
Comparing options by their opportunity cost shows where a person or organization has an advantage. The party that gives up less to produce something should be the one to produce it, which is the basis of trade. This is why free things are not free: a free afternoon spent on one task has the opportunity cost of the best other use of that afternoon. Good decisions state the alternative being given up, not only the price being paid.
Example
Say a farmer can grow 100 sacks of wheat or 60 sacks of corn on the same field, and wheat sells for 5 and corn for 9 a sack. Wheat brings in 500 and corn 540. Choosing corn means giving up 500, so the opportunity cost of corn is 500. Choosing wheat means giving up 540. The farmer should plant corn, since it gives up less than it earns. Illustrative numbers only.
In a game economy, a player who spends gold on armor cannot spend it on a mount, so the value of the mount is the opportunity cost of the armor.
How to model it in Machinations
Use a Pool for the limited resource and two outgoing connections to Pools for the competing uses, with Registers that compute each use's return. Make the split a Lever, Play, and chart the returns to see what is given up at each split.
See opportunity cost in a system you can Play
Build the rules in a Machinations diagram, change a value and Play it to watch how the system responds.