Skip to content

Genetic Algorithm for Cutting and Packing Optimization

Latest

Choose a tag to compare

@bturkoglu bturkoglu released this 16 Mar 11:26
09481d3

πŸ” Overview

This repository presents an implementation of a Genetic Algorithm (GA)-based approach for solving the Cutting and Packing Problem. The goal is to optimize object placement within a constrained space, reducing material waste while maximizing efficiency. This algorithm is particularly useful in manufacturing, logistics, and material utilization applications where efficient space management is crucial.

βš™οΈ Features

βœ… Implements Genetic Algorithm (GA) for solving the cutting and packing problem
βœ… Supports object rotation (90-degree adjustments) to improve placement efficiency
βœ… Utilizes roulette wheel selection, single-point crossover, and mutation for solution refinement
βœ… Provides visualization tools for analyzing placements and results
βœ… Achieves 30-50% waste reduction compared to random placement methods
βœ… Includes a configurable structure to test various object arrangements

πŸ“‚ Repository Contents
β€’ cizim.py / cizim2.py β†’ Visualization tools for placement analysis
β€’ prg1.py - prg5.py β†’ Core GA implementation and optimization functions
β€’ rulet.py β†’ Roulette selection mechanism for GA
β€’ bilgi.txt β†’ Input data and configuration parameters
β€’ README.md β†’ Documentation and usage instructions

πŸ“₯ Installation & Usage

To use this project, clone the repository and run the main script:

git clone https://github.com/bturkoglu/placement-problem-with-genetic-algorithm.git
cd placement-problem-with-genetic-algorithm
python cizim2.py

Modify the configuration parameters in bilgi.txt to test different object arrangements.

πŸ“Š Experimental Results

The algorithm was tested on multiple object configurations, demonstrating:
βœ” 30-50% reduction in material waste compared to random placement
βœ” Improved adaptability over traditional greedy heuristic methods
βœ” Optimized space utilization with evolutionary computation techniques

πŸ“ Citation & Reference

This research has been submitted to ICATCES 2025 Conference. The abstract can be accessed here:
πŸ“„ [ICATCES 2025 Abstract](Abstract Link - After Acceptance)

For academic citation, please use the following format:
B. TΓΌrkoğlu, β€œA Genetic Algorithm-Based Approach to the Cutting and Packing Problem,” ICATCES 2025, Karabuk, Turkey.

πŸ“Ž License

This project is released under the MIT License. You are free to use, modify, and distribute the code with proper attribution.

πŸ”— Full Implementation & Documentation

πŸ”— GitHub Repository