20 randomly sized squares into one big square

Hi
I am looking into a project where i have 20 random sized squares. I hope to find a way to make thoose squares fill the most, but still be touching eachother, and form a bigger sqaure. Do you have any suggestions for how to solve this?
And do you think there in any case would be a scenario where the grashopper model could turn some of them around, and still be touching eachother?

Kind Regards

hello
@DanielPiker has done some (many surely) works on subject near this one.

What is clear is that it is not simple for same size square so I think it must be hard for random size squares. But Kangaroo could help a lot.

2 Likes