Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Scheduling algorithm based on expected labor hours vs available crew

ladazhome
6 - Meteoroid

I have been trying to create an algorithm to "schedule activities" based on expected labor hours vs available crew. Has anyone created something similar?

 

I already have my datasets ready, and I've been exploring using the multirow formula (but im having values updating values inside of an iterative macro). I'm using two examples I found, but I haven't identified my error.  I would appreciate a recommendation on how you would address a problem like this.

 

By one hand I have the WR vs expected labor hours:

WRExpected labor hours
440031.7
3475128
48681
51221
54251
57381
55941
56591
56651
57071
57891
5579928.22
5805673.96
557945.72
561941.82
476913.13
4940433.88
611652.07
61261
5319111.35
61441
61521
62011
570858.39
62721
627177.71
62851

 

 

Then by the other hand I've 10 crews, 200 hrs slots of available time to assign them tasks

 

Available Time (hrs)Crew No
200Crew 1
200Crew 2
200Crew 3
200Crew 4
200Crew 5
200Crew 6
200Crew 7
200Crew 8
200Crew 9
200Crew 10

 

 

I appreciate any suggestions you could please provide me.

 

6 REPLIES 6
shancmiralles
10 - Fireball

hi! can you provide an expected output for this? thanks!

apathetichell
19 - Altair

Honestly - you can probably use an iterative macro for this - but the optimization tool would be a better use case for this. I'm rusty on it -but perhaps you can check out the one tool example and play around with it?

Qiu
21 - Polaris
21 - Polaris

@ladazhome 
I would think this as a Bin Packing problem.

We had a similar discussion here and based the solution I made some changes as below. maybe this will work?
Note that where is a duplication on WR number in your input, so I have modified it to another number.

 

https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/HELP-How-to-use-ITERATIVE-MACR...

0821-ladazhome.png

ladazhome
6 - Meteoroid

My goal is to assign jobs to crews not passing the available time (200 hrs) and have a report that shows the distribution.

 

 

ladazhome
6 - Meteoroid

Thank you for this guidance.

 

I didnt think on using the mod and is great! definitely boost my start at this project

Qiu
21 - Polaris
21 - Polaris

@ladazhome 
Would it be possble for you to provide a sample date showing your goal?

Labels