Home › Forums › Urban Modeling and Simulation › attractivity map – alternatives to roulette wheel › Reply To: attractivity map – alternatives to roulette wheel
July 1, 2019 at 17:10 #9579
Keymaster
You can get a similar result if you add some code to make attractive locations more attractive (how much more depends on the poser variable):
// — make attractive locations even more attractive —
for(int i = 0; i < newPop; i++)
{
double power = 6;
AttractPop[i] = Math.Pow((1+AttractPop[i]), power);
}
That’s probably the more elegent version.
Best regards
Reinhard