How to place the panels on the facade to maximize the use area

Dear all,

I have a query, I am trying to place the panel (shown on the left side) on the facade (right side) in a way that the panels cover the maximum area possible on the facade without covering the windows. I have already created the script where I get the surface that does not involve windows and now, I just need to project the panels on the surface. Can anyone please help me out in this situation?

Thanks a lot in advance!