On Tuesday, October 30, 2012 9:26:25 PM UTC-5, David Nolen wrote:
>
> Even so I don't really understand the time conditions you've described at 
> all. Can you please clarify or draw a simple picture with text what results 
> you are expecting? I'm a bit confused by your task facts in particular, for 
> example start 0, end 10 but duration 5 ???
>
> Thanks,
> David
>

Thanks for the sample code; I'll stew over it for a while to make sure I 
understand it.

Sorry, I didn't do a very good job of explaining the problem I'm trying to 
solve. Here's a quick picture that might help:

https://docs.google.com/drawings/pub?id=1gmjjjo6YIiBGCvm87BEgvsqONZpavmBeV0TtpDDDI8A&w=904&h=496

The blue arcs on top represent the start/end times from the task facts. 
Tasks 1 and 2 must be completed between times 0 and 10, and task 3 must be 
completed between times 0 and 11. Since task 1 only takes 5 units of time 
to complete, though, you have some space: you can complete it from 0-5 or 
1-6 or 2-7 or 3-8 or 4-9 or 5-10. But, you can't start task 1 before time 0 
and you can't finish it after time 10 (and it must take 5 minutes to 
complete). That's what the facts denote.

The start/end times in the output represent the times that the task is 
actually being performed.

The red section represents the current output. Person A is assigned all 
three tasks, and person B is assigned none. The problem is that the three 
tasks are completed from 0-5, 0-9, and 0-3. This means that person A is 
doing all three tasks simultaneously (during times 0-3), which isn't 
allowed. During times 4-5, he's still doing tasks 1 and 2, which is also 
not allowed.

Instead, the green section is what I'm hoping to get. Each task falls 
within the range given by the blue arcs on top and neither person has to do 
more than one task at a time.

I'm not sure this helps explain the problem any more than before. Again, 
this certainly isn't an important problem for me to solve, so I'd hate to 
waste too much of your time on it.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to