I'm using Simulated Annealing for Rectangular Nesting problem. I'm able to get good results, but the solution i got is DISCRETE. Even global optimum is not always obtained.
Problem Description:
Objective - To minimize the length of the infinite sheet (Width is constant) by changing the order in which parts are placed.
Problem i Face:
The output Results i get are DISCRETE(only 15 possible utilization %) instead of ANALOG (as there is 11!*2^11 possible solution -> We expect the results to be analog)
Path traveled by SA - MATLAB output
Results I expect Generated for a different problem using the same SA code i used for this problem
Reason i get a DISCRETE output can be seen from following image. There could be many possibility of sequences giving same length 55.
Efficiency calculated from Maximum Length
I presume i could solve the problem if i change the way of calculating utilization% like this.
Efficiency calculated from Boundary cut Length
Even though i figured out how to solve the problem, i don't know how to find the Boundary Cut AREA in order to find the efficiency. Anybody has a way to find the area under the red line? I need to avoid using Image Processing Toolbox
FYI: Rectangles are stored as x,y distance of the bottom-left position from Origin of each rectangle. i have the corresponding length, breadth values in another variable.