ment">%   minimize   max(wa+wb,wc+wd)*(max(ha,hb)+max(hc,hd))</span>
<span class="comment">%       s.t.   wa*ha == area_a, wb*hb == area_b, ...</span>
<span class="comment">%              1/alpha_max &lt;= ha/wa &lt;= alpha_max, ...</span>
<span class="comment">%</span>
<span class="comment">% where variables are rectangle widths w's and heights h's.</span>

<span class="comment">% constants</span>
a = 0.2;
b = 0.5;
c = 1.5;
d = 0.5;

<span class="comment">% alpha is the changing parameter</span>
N = 20;
al