+ Reply to Thread
Results 1 to 9 of 9

Optimal task time scheduling and assigment problem - Excel Solver

Hybrid View

ciprian Optimal task time scheduling... 12-27-2020, 06:24 AM
Hydraulics Re: Assigment problem - solver 12-27-2020, 06:52 AM
ciprian Re: Assigment problem - solver 12-28-2020, 05:02 AM
Hydraulics Re: Assigment problem - solver 12-28-2020, 03:07 PM
ciprian Re: Assigment problem - solver 12-29-2020, 02:11 AM
ciprian Re: Assigment problem - solver 12-29-2020, 09:42 AM
Hydraulics Re: Assigment problem - solver 12-29-2020, 01:24 PM
ciprian Re: Assigment problem - solver 12-30-2020, 02:15 AM
Hydraulics Re: Optimal task time... 12-30-2020, 04:12 AM
  1. #1
    Valued Forum Contributor Hydraulics's Avatar
    Join Date
    07-15-2018
    Location
    Udine - Italy
    MS-Off Ver
    Office 365
    Posts
    396

    Re: Assigment problem - solver

    Your setup is a valid alternative, and I'm happy you could solve your problem. However, introducing a value for each person, you have added one layer of complexity.

    The first rule in this kind of constraint problems is: keep it simple.

    You can get the same result constraining directly the binary variables, as I suggested. I'm attaching a worksheet you can test, and that will work even if you add people.

    HTH,

    Francesco
    Attached Files Attached Files
    Aim high or don't even try.
    ---------------------------------
    If your question has been answered, don't forget to mark the thread as SOLVED.
    If you find an answer helpful, click on the star icon at the bottom of the post.

  2. #2
    Registered User
    Join Date
    04-18-2011
    Location
    Bucharest, Romania
    MS-Off Ver
    Excel 2019
    Posts
    90

    Re: Assigment problem - solver

    Ok, I didn't understand your solution at first but now it makes sense. Thank you.

  3. #3
    Registered User
    Join Date
    04-18-2011
    Location
    Bucharest, Romania
    MS-Off Ver
    Excel 2019
    Posts
    90

    Re: Assigment problem - solver

    Let's try and go a bit further and have not have a fixed time for the tasks in the begining.

    We have 5 tasks and 3 people (in the original post we needed a solution for teams of people, but for this is easier to understand and go forward). Each person takes the same amount of time to finish a task, it all depends on the time allocated to each task.

    Tasks 1 and 2 can take between 5 and 15 days.
    Tasks 3 and 4 can take between 25 and 35 days.
    Task 5 takes between 35 and 45 days.

    Having 3 people means that 3 tasks can have people assigned to them at the same time.

    The time constraint for the tasks is that the total time for each layer/timeline (not sure of the best word here) is 40 days.

    So a solution would be:

    Tasks 1 and 2 are scheduled for 10 days.
    Tasks 3 and 4 are scheduled for 30 days.
    Task 5 is scheduled for 40 days.

    Person 1 would work on Task 1 and then on Task 3.
    Person 2 would work on Task 2 and then on Task 4.
    Person 3 would work on Task 5.
    This last part is already solved.

  4. #4
    Valued Forum Contributor Hydraulics's Avatar
    Join Date
    07-15-2018
    Location
    Udine - Italy
    MS-Off Ver
    Office 365
    Posts
    396

    Re: Assigment problem - solver

    Quote Originally Posted by ciprian View Post
    Let's try and go a bit further and have not have a fixed time for the tasks in the begining.
    Do you mean that time (for each task) is a variable, and its value should be somehow found by Solver? Then there are very few solutions if we must respect the time constraint of 40 days, and we don't need Solver.

    First, task 5 cannot be > 40, so its value is within 35 and 40. No task is smaller than 5, so task 5 must be either 35 or 40 (otherwise we are left with a number < 40).

    If it is the former, we could set Task1 (or 2) = 5, sum it to Task5 and reach 40, but then we are left with a Task3 (or 4) that is always < 40.

    Otherwise, we can express that Task1 (or 2) + Task3 (or 4) = 40, and 5 < Task1 < 15. There are 11 couples of values that satisfy the equation and the constraint.

    If I have misunderstood your question, please explain what may be another valid solution.

    HTH,

    Francesco

  5. #5
    Registered User
    Join Date
    04-18-2011
    Location
    Bucharest, Romania
    MS-Off Ver
    Excel 2019
    Posts
    90

    Re: Assigment problem - solver

    This example is just a water-down version of the actual problem which has 30 to 40 tasks each with a min/max possible duration that have to all fit in a calendar semester with 15 people assigned to them.

    So getting a Excel Solver solution to the 5 tasks and 3 people example would help me extrapolate to resolve the actual problem.

    I know that with a constraint of 40, Task 5 cannot be 45, but I want Excel Solver to come to this solution. I could have made the example with all 30+ tasks and people, but I thought it would be too much and having fewer tasks would be easier to understand the issue and the solution needed.
    Last edited by AliGW; 12-30-2020 at 02:51 AM.

+ 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. Replies: 7
    Last Post: 12-31-2016, 12:29 PM
  2. Problem Using Solver with an optimization stock problem
    By Jagrubski in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-24-2013, 03:41 AM
  3. Rotation Assigment to New Clients
    By basketballrats in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-28-2012, 08:40 AM
  4. OnAction macro assigment through a macro in network environment behaves strange
    By kbx17 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-26-2012, 02:22 PM
  5. Assigment assistance (need ideas)
    By jermaindefoe in forum Excel General
    Replies: 7
    Last Post: 02-18-2008, 12:50 PM
  6. Interesting Solver problem (Solver encounters an error)
    By MrShorty in forum Excel General
    Replies: 3
    Last Post: 12-22-2005, 06:55 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