Bin Packing Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guido Geurs
    Recognized Expert Contributor
    • Oct 2009
    • 767

    #16
    Attached are some flowcharts of the code.
    Attached Files

    Comment

    • Guido Geurs
      Recognized Expert Contributor
      • Oct 2009
      • 767

      #17
      This is a version working on the same principle but with the indexes of the ARRSEL array.
      Maybe a little faster with large sheets
      Attached Files

      Comment

      • jfarr3ll
        New Member
        • Apr 2012
        • 11

        #18
        That's perfect. Thank you so much for this.

        Comment

        • jfarr3ll
          New Member
          • Apr 2012
          • 11

          #19
          Hi Guido,

          Last year you were increadibly helpful with this problem, and I was hoping you could provide some of your expertise again to help with a slight issue I've identified when using your code in practise.

          It is perfect as long as a multiple of 4 is not entered. However, when a multiple of 4 is entered it seems to ignore one record.

          Alternatively if anyone else can help I'd greatly appreciate it.

          I have attached a workbook.

          Many Thanks in advance,
          Attached Files

          Comment

          • Guido Geurs
            Recognized Expert Contributor
            • Oct 2009
            • 767

            #20
            Sorry, my mistake.
            For the last records there is an error in the code.
            There is 2 times "Case 3" so If there are 4 records left, the 4th will never be seen.
            It must be:
            Code:
            .....
                            Case 3
                                .INDEX3 = ARRSELidx
                            [B]Case 4[/B]
                                .INDEX4 = ARRSELidx
                            End Select
                        End With
            .....
            Attached Files

            Comment

            • jfarr3ll
              New Member
              • Apr 2012
              • 11

              #21
              perfect.

              Thanks again Guido.

              Comment

              Working...