Looking for examples of building position optimization

Hi, I am looking for example approaches at building position optimization
I am trying to find a way to optimizie multiple building position to some fitness value.
Currently I am just feeding their X and Y position from their origin to the genetic algorithm but I feel this is not a smart solution:

Can someone recommend me some more interesting approaches?