Home › Forums › Urban Modeling and Simulation › Moved: distances, plot size, land use colors › Reply To: Moved: distances, plot size, land use colors
Dear Luisa,
Concerning question 3: You need to add this code block in the C#_Attractivity component before the normalization part:
//=======================================================
// — check sizes for functions —
for(int i = 0; i < nrLocations; i++)
{
double minPlotSize = 3000;
double maxPlotSize = 6000;
double curPlotSize = PlotSizes[i];
if ((curPlotSize < minPlotSize) || (curPlotSize > maxPlotSize))
{
attractPop[i] = 0;
}
}
Please, adjust the min and max plot size to your needs!
In addition you need to link the plot sizes to the input of this component – see attached GH file.
Best regards
Reinhard