For Programmers: Free Programming Magazines  


Home > Archive > Prolog > January 2006 > Simple resource allocation problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Simple resource allocation problem
Pat

2006-01-10, 4:10 am

Greetings,

I am looking at a resource allocation problem that can be simplified as
follows:

two resources X and Y

X :: 1..5
Y :: 1..5

I want to allocate resources to 5 tasks each using one of each
resource. No doubleup. i.e you can only use the pair X1,Y1 once

Ususally you would use an alldifferent, but how to use this if multiple
resources are involved?

I know this looks very simple, but a number of people I have spoken to
have had trouble solving this elegantly.

I am currently looking at writing with Eclipse.

Thanks in advance.

Pat

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com