Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given a 2D bin of width W, allocate N rectangles of sizes w_k x h_k so that the height of the packed rectangles is minimal.

image text in transcribed

Given a 2D bin of width W, allocate N rectangles of sizes w_k x h_k so that the height of the packed rectangles is minimal. Write a Matlab function that given an order of the rectangles to be packed and their orientation, puts them from left to right and as low as possible (see below). Implement a simple algorithm that randomly swaps the order of two rectangles and (randomly) changes their orientation (the updated order is accepted if it reduced the objective function value). Visualize the process. Bin packing problem for 40 rectangles (W = 12). Initial order (left) and optimized order (right) Given a 2D bin of width W, allocate N rectangles of sizes w_k x h_k so that the height of the packed rectangles is minimal. Write a Matlab function that given an order of the rectangles to be packed and their orientation, puts them from left to right and as low as possible (see below). Implement a simple algorithm that randomly swaps the order of two rectangles and (randomly) changes their orientation (the updated order is accepted if it reduced the objective function value). Visualize the process. Bin packing problem for 40 rectangles (W = 12). Initial order (left) and optimized order (right)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are the classifications of Bank?

Answered: 1 week ago

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago