I managed to remap domains and achieve the effect so whatever the moving sliders’ value is the rectangle does not cross surface boundary line. However, this solution doesn’t work if the boundary isn’t rectangular.
Trying to find the most flat part of the surface under the footprint. I need xy movement over the entire plot and a limited rotation constrained by angle slider’s min/max values (i.e. from-20 to 20 degrees)
It looks like it would be possible to include that in the Galapagos solving. If you create some value which increases the more the rectangle extends beyond the boundary, you can use it as a penalty and subtract a multiple of it from the fitness value.
a few adjustments… I usually use dimensions divided by a grid size to get a more square-like grid with a single parameter point in trimmed boundary 2.gh (58.6 KB)