CSP2d_rectangle.m
function optseg = CSP2d_rectangle a=203; b=114.5; L=2799 ; W=1500; l=2*a; w=2*b; % L=4000; % W=1500; % l=215; % w=154; % L=10.1; % W=6.2; % l=2.1; % w=1.2; blnk=16; nmax=100; crcn=5; WL=[L 0]; % % % dfig=figure; % % optPattern=[0 0 floor(L/l) floor(W/w)]; %n=1 seperate with n>=2 patternlist={{[0 W],optPattern}}; Nopt=floor(L/l)*floor(W/w); if rem(L,l)==0&&rem;(W,w)==0 bricklist=patternlist{1}{2}; drawbrick(bricklist,Nopt) optseg=Nopt; return end n=2;%n>=2 while n
用户评论