Solar radiation optimization

Hi, I’m trying to optimize the orientation of my building for solar radiation. I want to be able to move my building within a certain boundary, is this possible and is there a practical way to express this on grasshopper?
Something like what this video did, moving it within the red boundary.

This is how
optimization.gh (413.0 KB)


You’ll need to open Galapagos and run it