+ Reply to Thread
Results 1 to 12 of 12

Optimizing a cutting list for least waste

  1. #1
    Registered User
    Join Date
    08-04-2016
    Location
    Mauritius Island
    MS-Off Ver
    2007 & 2013
    Posts
    3

    Optimizing a cutting list for least waste

    Hello everybody.,

    This is my second post after the introduction so hopefully i can learn a lot with you guys.

    So, i have a very small manufacturing company making aluminium Doors, Windows and other openings and i'm trying to build an excel workbook to make life easier for me ( There are a lot of professional Doors & windows calculating software available on the market but they are very expensive and i cant afford it for now )

    My first issue is how i can use excel to do a linear calculation and optimizing a cutting list for least waste, below is an example :

    - Aluminium Profile Ref is " A "
    - Length of Profile "A" is 5800mm
    - Stock of Profile "A" is 50bars

    below, cut list for ref "A" for production
    - 10 x 3500
    - 3 x 2560
    - 1 x 1500
    - 2 x 1200
    - 4 x 2000
    - 5 x 4000
    - etc....

    Question is how many bars of ref "A" will i need with the least waste possible ? Just need a formula for it, hope you guys can help, cheers..

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Optimizing a cutting list for least waste

    I don't think there is anything like "just a formula" for the cutting stock problem. I found these two pages by putting "cutting stock problem excel" into a search engine
    http://blog.excelmasterseries.com/20...aste-with.html
    http://www.solver.com/cutting-stock
    There appear to be many other pages discussing this kind of problem as well. You might also specifically look for 1D cutting stock problems to see how to adapt the 2D algorithm to cover the 1D case.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    08-04-2016
    Location
    Mauritius Island
    MS-Off Ver
    2007 & 2013
    Posts
    3

    Re: Optimizing a cutting list for least waste

    Wow., i thought there was a more simple approach to this but thanks anyway MrShorty. There are add in for excel that can do this like '1DCutX' but i just wanted to understand the mathematics behind it so that i can do a custom made workbook.

    I found these steps while searching other pages but it is not the best approach for least waste but still a good solution, if somebody can come up with something else it will help me a lot. Anyway i will continue with my research until i find something good.

    - The hands on approach I think is perfect (but how to translate to Excel is the question now!):
    - get a list from somewhere
    - sort it from longest to shortest
    - get the first part length

    - look in the scrap bin for the shortest piece that'll do the job
    - cut the piece of scrap if you find one, else cut a piece of stock
    - if a length of stock is used then up the tally of lengths required
    - put the cut-off in the scrap bin
    - get the next length needed from the cut-list
    - repeat the above 5 steps until list is finished"

    Here's the link http://www.mrexcel.com/forum/excel-q...-material.html
    Last edited by simplemind2979; 08-05-2016 at 03:57 AM.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Optimizing a cutting list for least waste

    Hi Ali

    Don't think the OP is crossposting, he just added the link to a page at MrExcel where he found a possibel solution to the problem.

    Alf

  5. #5
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Optimizing a cutting list for least waste

    You could perhaps use the Excel Add-In "Solver". But you have to set up a "table" with possible cutting pattern for "Solver" to work with and that could take a bit of time.

    If you have a number of "standard" cut lengths "table" building will be a one time job but if cut lengths vary all the time you may have to rebuild your table every time cut length changes.

    Based on your information in post #1 I've set up a solver model you can study to see if "Solver" may be the tool you are looking for.

    Alf
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Optimizing a cutting list for least waste

    Quote Originally Posted by Alf View Post
    Hi Ali

    Don't think the OP is crossposting, he just added the link to a page at MrExcel where he found a possibel solution to the problem.

    Alf
    Yes - he added it thirty minutes after I posted - you can see the edit time at the foot of his post.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Optimizing a cutting list for least waste

    Quote Originally Posted by AliGW View Post
    Yes - he added it thirty minutes after I posted - you can see the edit time at the foot of his post.
    Hi Ali,
    I always find it good to add the Link to where the OP cross posted. Have you got the link to where this was cross posted?
    As Alf said the Link the OP gave is just to a very Old MrExcel Thread.
    Alan
    '_- Google first, like this _ site:ExcelForum.com Gamut
    Use Code Tags: Highlight code; click on the # icon above,
    Post screenshots COPYABLE to a Spredsheet; NOT IMAGES PLEASE
    http://www.excelforum.com/the-water-...ml#post4109080
    https://app.box.com/s/gjpa8mk8ko4vkwcke3ig2w8z2wkfvrtv
    http://excelmatters.com/excel-forums/ ( Scrolll down to bottom )

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Optimizing a cutting list for least waste

    It's here:

    http://www.mrexcel.com/forum/excel-q...ast-waste.html

    @Alf - I don't use the canned cross-post message unless I have actually found the same query posted elsewhere.

  9. #9
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Optimizing a cutting list for least waste

    Quote Originally Posted by AliGW View Post
    ....I don't use the canned cross-post message unless I have actually found the same query posted elsewhere.
    That's what we both thought
    Picking these up is really helpful just now as its getting to be a plague.
    We just got a bit lost / confused not having the link. I always Link each post to the other, ( well mybe not anymore at Mr Excel Lol )
    Thanks
    Alan

  10. #10
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Optimizing a cutting list for least waste

    I don't use the canned cross-post message unless I have actually found the same query posted elsewhere.
    Sorry, my bad Ali as only saw the old MrExcel thread.

    Alf

  11. #11
    Registered User
    Join Date
    08-04-2016
    Location
    Mauritius Island
    MS-Off Ver
    2007 & 2013
    Posts
    3

    Re: Optimizing a cutting list for least waste

    Thanks for the "solver" Alf, will try it and will let you know if i can manage with it and sorry guys for any inconvenience as i'm a newbie and don't know much about forum rules, will be more careful in futur post.

    Nadim.

  12. #12
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Optimizing a cutting list for least waste

    Hi nadim

    Thank for feedback.

    Solver is not installed by default when you install Excel so you need to check under the "Data" tab if Solver is installed.

    If so you clear range K6:K22, then click Solver -> Solve -> OK

    If Solver not found in "Data" tab install Solver. See link

    https://support.ivey.ca/entries/2224...for-Excel-2013

    I've added another file where Solver is run in a loop using a macro. This requires

    1) Solver must be installed

    2) A reference to Solver must be set in "Visual Basic".

    So select "Developers" tab, click "Visual Basic" icon, click "Tools", then "References" and tick box marked Solver. Close "Visual Basic" window.

    In range C4 to J4 you specify the number of cut list you wish to make.

    The master rod length can be changed by changing F12 value.

    The cut length can be changed by changing the values in range C2:J2. You specify up to 8 different cut length at the moment, more is possible but then the macro has to be rewritten a bit.

    To test run macro "SolverLoop"

    This macro is build using Excel 2010 so I would recommend you to use it in an Excel 2013 environment (can be modefied to Excel 2007)

    The good: this is an easy model to work with as you don't need to set up a table with all the different combinations of list lengths.

    The bad: the total Solver solution will be sub optimized i.e. as Solver finds the optimal solution for one set of lists based on lists needed and length of master rod the next loop of solver has less lists to work with and the number of available lists will decrease with every loop. So every Solver solution will be optimal but based on the decreasing number of lists to cut the "total" solution will not be as good as when Solver can "weight" all possible combinations in one go in order to produce minimum wastage.

    Alf
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Optimizing a cutting list for least waste
    By Mrnuddles in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 11-21-2023, 03:37 AM
  2. Optimizing Cutting List For Least Waste
    By sergiu_ciuhnenco in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-26-2019, 05:00 PM
  3. Replies: 6
    Last Post: 05-01-2016, 04:41 AM
  4. Optimizing Cutting List for Least Waste - With a twist!
    By alamedapipe in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-07-2016, 01:09 PM
  5. optimizing a fuzzy match nested loop- checkin 4k items on a list of 63k
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2013, 04:30 PM
  6. Replies: 1
    Last Post: 09-19-2013, 08:32 AM
  7. Replies: 10
    Last Post: 04-23-2005, 11:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1