Optimizing facade panels with galapagos

Im experimenting with trying to create panels on a surface which should have minimal difference in width. Basically something like an equation with the panel widths as variables and the individual scale factors as coefficients to each corresponding panel width. The right solution should be the smallest possible number for the difference between the largest and smallest panel width.
facade_optimizing.gh (29.7 KB)

Am I defining the problem properly and is that a good approach to the problem?

Screenshot 2

Hi @Bob8
It’s hard to see a use case where you could actually scale panels as a post process, after their generation. You would end up with same-width panels, but also with un-even distribution and overlaps/gaps. The received width from Galapagos would be roughly an average of all widths.

Geometrically speaking, this is not a very complex challenge, that would even need Galapagos. I might have misunderstood your issue, but testing with your surface, I would easily obtain one width value within 6 decimal accuracy.
The top method is simple Divide Curve and bottom methods is Divide Distance. The bottommethod works in this scenario as you can see from the widths.

facade_optimizing.gh (41.6 KB)