timetabling
David López
deibyd at gmail.com
Mon Aug 21 18:42:19 CEST 2006
hi everyone
i'm new on constrain programing
and my english is very bas, thus excusme
i want to search a solution of a timetabling problem, the particular
model is attach with this mail.
example
i have this script:
declare
proc {Safe C}
{FD.tuple code 9 1#9 C}
{FD.distinct C}
C.1 + C.4 =: C.7
C.1 * C.2 * C.3 =: C.8 + C.9
C.2 + C.3 + C.6 <: C.8
C.9 <: C.8
{For 1 9 1 proc {$ I} C.I \=: I end}
{FD.distribute ff C}
end
declare
proc {Salas X}
{FD.tuple var 27 0#1 X}
X.1 + X.4 + X.7 =<: 1
X.11 + X.14 + X.17 =<: 1
X.21 + X.24 + X.27 =<: 1
X.1 + X.10 + X.19 + X.2 + X.11 + X.20 + X.3 + X.12 + X.21 =: 2
X.4 + X.13 + X.22 + X.5 + X.14 + X.23 + X.6 + X.15 + X.24 =: 2
X.7 + X.16 + X.25 + X.8 + X.17 + X.26 + X.9 + X.18 + X.27 =: 2
{FD.distribute ff X}
end
but i want a variable this tipe, Xmwl, where m is roms, w subject an l
periods, how can i have this tipe of variables, where the model is attach
tank for answer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: modelo_oz.pdf
Type: application/pdf
Size: 21073 bytes
Desc: not available
Url : http://lists.gforge.info.ucl.ac.be/pipermail/mozart-users/attachments/20060821/f0d5aad2/modelo_oz.pdf
More information about the mozart-users
mailing list