This problem was discussed recently here:
http://yetanothermathprogrammingconsultant.blogspot.com/2017/07/rectangles-no-overlap-constraints.html
In that case the orientations were fixed, but you can easily modify the model to allow a choice of orientations by introducing binary variables. Can you please share sample data?
... View more