+ Reply to Thread
Results 1 to 18 of 18

A Method for Resolving a Schedule

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    69

    A Method for Resolving a Schedule

    I have a job shop scheduling problem. I am pretty good with formulas and functions but what I am struggling with is understanding the problem and coming up with a method for solving it.

    So pretend you are in a factory making all kinds of different widgets. To make a widget you have a number of different processes involved, and the variety and length of time of each process can be quite different widget to widget. Every widget project also has a due date.

    What I am trying to do is create schedules for each process, so that we can say this process should work on this widget, followed by this widget and so on. What I am using is a backtrack scheduling method, that is, for each widget I am summing the time of all future processes of that widget and subtracting that from the widgets due date and this decides the order of what widget should be made first. So I am prioritising widgets in the process schedule by how much work is left to go and it's due date priority. Now that I have done this I want to calculate what the finish date of each widget would be in the process schedule and this is where I am running into problems.

    Because each widget uses different processes from one widget to another it means that to calculate when a widget will be finished it's not just a matter of going down each process schedule and adding the length of time it takes to do the process on to the finish date of the above item in the schedule because the process needs to check whether the preceding process for the widget is complete or not. That is, you can't start work on a widget unless the work on the previous process is complete. But because the processes for each widget is so random I am getting all these circular reference issues in the formulas I am trying, or I am not getting enough data to work with to make a calculation.

    I have attached a really simplified excel document which illustrates the problem. I sure hope I have explained this somewhat understandably! I don't even know whether this is really a problem that can be solved in Excel and it maybe needs some kind of genetic algorithm to solve it?! Your help would be amazing
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: A Method for Resolving a Schedule

    1. How can the widgets have different priorities in different processes? I'd have thought priorities would be assigned by widget.

    2. Can a given process run simultaneously on several widgets?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: A Method for Resolving a Schedule

    Is one to assume that each process is linear (one after the other) and not parallel (each process is only being done on one widget at a time)? Also, can one assume that the order of the processes will be different for each widget?

    One thing seems obvious to me, unless I am missing something, that there is a lot of wasted time waiting for a process to begin if all widgets started at the same time.

    The process for the first process is going to set the priorities for the other processes by default...first come first served. Otherwise there is a lot of wasted waiting time.

    Widget #3 takes 12.5 days to complete without waiting time and would logically start first on the first process. If it had to wait for widgets 1 and 2 to finish process 1 it would be waiting 2.2 days just to get started. Widget 4 would have to wait 3.9 days to get started and couldn't possibly finish on time. Widget 3 would have to start first and not waste any time just to finish on time.

    The starting times have to be staggered so that at some point all processes are being carried out simultaneously thereby eliminating a lot of waiting time.
    Last edited by newdoverman; 11-25-2014 at 09:47 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    10-10-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: A Method for Resolving a Schedule

    Hi shg and newdoverman,

    You bring up good points which I forgot to mention.

    The widgets priorities have been assigned by this backtracking process, it's best not to think about how the priorities have been assigned but rather how to work with the priorities. Each process can only process one widget at a time sorry forgot to mention that. So process one can only work on widget 1. The processes themselves can work be working at the same time, but of course it's important that let's say for widget 1, that process 1 is completed before process 2 can start. I hope that makes sense. Thanks!

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: A Method for Resolving a Schedule

    So does this look like a good result?

    Row\Col
    H
    I
    J
    L
    M
    N
    2
    Widget
    Process
    Minutes
    Start
    End
    3
    Widget 3 Process 1
    600
    0
    600
    4
    Widget 1 Process 1
    300
    600
    900
    5
    Widget 2 Process 1
    500
    900
    1400
    6
    Widget 4 Process 1
    400
    1400
    1800
    7
    Widget 3 Process 2
    900
    600
    1500
    8
    Widget 2 Process 2
    600
    1500
    2100
    9
    Widget 1 Process 2
    750
    2100
    2850
    10
    Widget 4 Process 2
    600
    2850
    3450
    11
    Widget 1 Process 3
    1200
    2850
    4050
    12
    Widget 4 Process 3
    1400
    4050
    5450
    13
    Widget 3 Process 4
    1500
    1500
    3000
    Done
    14
    Widget 2 Process 4
    1350
    3000
    4350
    Done
    15
    Widget 1 Process 5
    1200
    4050
    5250
    Done
    16
    Widget 4 Process 5
    200
    5450
    5650
    Done

  6. #6
    Registered User
    Join Date
    10-10-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: A Method for Resolving a Schedule

    Hi shg,

    I don't think I have explained myself to clearly. The priority column in my sheet is the order that the processes must take place. So on process 1 for example, widget 1 has to be started first because it is priority one, and then widget 2 must be made and so on. Whereas you have started off with widget 3 for process 1. I am not exactly sure how you decided the priorities in the table you did? Just to re-iterate I am not looking for the most optimal time to get things done in my sample schedule problem.xlsx as this document is just filled with dummy data. The real document I am working with has 15 processes and over 200 widgets. Thanks,

  7. #7
    Registered User
    Join Date
    10-10-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: A Method for Resolving a Schedule

    I should also add, I am after a consistent formula to put in column E.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: A Method for Resolving a Schedule

    The priority column in my sheet is the order that the processes must take place. So on process 1 for example, widget 1 has to be started first because it is priority one, and then widget 2 must be made and so on.
    That certainly doable, but it does not optimize total processing time.

    I'm out unless you choose to clarify that this is a real problem, and why the arbitrary constraints are applied.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: A Method for Resolving a Schedule

    My thought process was almost identical to that of shg.

    You wanted to know why widget 3 had to be started first. I have explained that in msg #3. Priorities as far as my own experience is concerned is to maximize the use of resources to minimize wasted time in order to efficiently meet deadlines. That does not seem to be the case here.

    I'm out.

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: A Method for Resolving a Schedule

    Ditto .

  11. #11
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: A Method for Resolving a Schedule

    @ndm:

    A BUAGC* of the process flows shown in the prior post:

    Please Login or Register  to view this content.
    *Butt-Ugly ASCII Gantt Chart

  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: A Method for Resolving a Schedule

    Row\Col
    B
    C
    D
    E
    F
    G
    H
    I
    J
    2
    Widget
    Process
    Time
    Pri
    Start
    End
    3
    Widget 1 Process 1
    6
    1
    0
    6
    F3: =MAX(IFERROR(LOOKUP(2, 1/(B$2:B2=B3), G$2:G2), 0), IFERROR(LOOKUP(2, 1/(C$2:C2=C3), G$2:G2), 0))
    4
    Widget 2 Process 1
    10
    2
    6
    16
    G3: =F3+D3
    5
    Widget 3 Process 1
    12
    3
    16
    28
    H3: =IF(COUNTIF(B3:B$16, B3) = 1, "Done", "")
    6
    Widget 4 Process 1
    8
    4
    28
    36
    7
    Widget 3 Process 2
    18
    1
    28
    46
    8
    Widget 2 Process 2
    12
    2
    46
    58
    9
    Widget 1 Process 2
    15
    3
    58
    73
    10
    Widget 4 Process 2
    12
    4
    73
    85
    11
    Widget 1 Process 3
    24
    1
    73
    97
    12
    Widget 4 Process 3
    28
    2
    97
    125
    13
    Widget 3 Process 4
    30
    1
    46
    76
    Done
    14
    Widget 2 Process 4
    27
    2
    76
    103
    Done
    15
    Widget 4 Process 5
    4
    1
    125
    129
    Done
    16
    Widget 1 Process 5
    24
    2
    129
    153
    Done

  13. #13
    Registered User
    Join Date
    10-10-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: A Method for Resolving a Schedule

    Hi shg and newdoverman,

    Thanks for your help, I appreciate it. The goal isn't to find out what the optimal path is, the goal is to find a formula to find out the finish date. What I am doing with this is simulating different equations to see what is optimal, but to decide what is an optimal equation and what isn't I need a way of measuring the equations - and to my best knowledge the only way to do that is by finding the finish date. I am sorry I didn't make this more clear early on. I realise that for this test case the priorities are not optimal and may seem like an unnecessary restraint but as I have been saying this is using dummy data.

    Thanks,

  14. #14
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: A Method for Resolving a Schedule

    I divided all the times by their greatest common denominator (50). Multiply it back and you have your original numbers.

    Divide the end time (153 in the last post) by the number of processing minutes in a day, and add it to the start date to get finish date.

  15. #15
    Registered User
    Join Date
    10-10-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: A Method for Resolving a Schedule

    Awesome thanks shg, I will check this out! Hopefully my brain can handle it haha

  16. #16
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: A Method for Resolving a Schedule

    @shg

    Your Gantt chart reminds me of the method I had before I had a computer and scheduling software. I would use graph paper and cut strips to length to represent processes and their time requirements....worked great. I could shuffle the strips around until I found the most efficient setup.

  17. #17
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: A Method for Resolving a Schedule

    Probably gave you a deeper understanding of the complexities to consider algorithms later.

  18. #18
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: A Method for Resolving a Schedule

    @shg
    For sure it certainly helped in the development of the methodology to solve later problems.

+ 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. Resolving a System Error
    By gonger in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-29-2013, 01:32 AM
  2. [SOLVED] resolving a #DIV/0! error
    By okcsteve in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-29-2013, 11:14 AM
  3. resolving #VALUE!
    By cwnan64 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-28-2009, 01:11 PM
  4. Vlookup not Resolving
    By PatK in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-15-2006, 02:15 PM
  5. Anticipating and resolving conflict
    By parvenu in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 04-05-2006, 11:32 PM

Tags for this Thread

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