Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# Algorithms Cutting
I need to implement an algorithm for optimal cutting linear materials. For example, for logs. There length of pieces that need to saw logs and the length of the logs.
Length of logs: 100
Length of piece
Required number of piecesr
as a result should show the length of pieces resulting from each log and residue.
i have this material:
A Simple C# Genetic Algorithm
But I do not know how to apply it to my topic.
Has anyone encountered a similar problem?
sorry for my english,
Posted 26-Jun-13 5:06am
Edited 26-Jun-13 5:14am
ThePhantomUpvoter at 26-Jun-13 10:24am
Material optimization, also called nesting, is a very broad and complex issue. Unless you have a real need to do this yourself, it might be more cost effective to buy a solution from someone that has already done it.
sorawit amorn at 26-Jun-13 16:49pm
could you explain a bit more about your example

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The Genetic algorithm is divided into 4 phases.
1.- Create initial population.
2.- Select parents from that population to be offspring.
3.- Reproduce from selected offspring using operators of crossover, mutation.
4.- From the offspring select the best individuals for the next population.
5.- Go to 1 until a stopping criteria is reached.
The important fact here is how you are going to encoded each individual in the population, which is the same as saying every solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 11 Nov 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100