Hey all, I'm making a city-builder RTS and I could really use some help with the city builder part. What I'm looking for is a way to assign the best mix of house-work for each citizen of the city. The factors for the house is enough free room(for all family members), enough money to pay rent and highest "living condition"(nearby services and etc.) For the job the factors are if work is available at said workplace, if the citizen is educated enough there, highest pay and highest "work quality" (perks, no pollution/dangers at work, etc.) And both should be as close as possible. This one got me real messed up, I'm starting to think this stuff is some college level sorting algorithm so I'm off to start reading about them. I don't want this as the main way of setting up the city(so i'm okay with a little heavy lifting here), during the game itself I'm planning on letting it change dynamically with the citizens moving around themselves, but I do want a way to set and initialize it to somewhat ideal conditions for quick testing and the map editor. Hope I explained the problem well enough, any input from you guys(and gals)?