There is a coal mine, iron ore mine and a steel foundry. How the player can "control" so these buildings have balanced workforce...
More detail is required in the example, before it can generate anything more than just rolling a random dice. Once there is a perception of a goal condition, then solving for the goal condition is possible, both automatically and as an exercise for the player.
So let's say that it takes 3 coal workers to produce power for each steel foundry worker, and 2 coal worker to produce power for an iron worker, and that the steel workers also require an iron worker. And we wish to maximize the output of steel. And we have only 25 workers at the moment. How many of each type should we create? Or maybe we currently have two iron factories that can house a maximum of 8 iron workers; then how many of each type should we create? Or maybe we wonder: Should I buy more people or more factories, and if so, which kind?
This is linear algebra, and it can be entertaining.