David López wrote:
> Filip Konvicka wrote:
>> Hi David,
>>
>> SumaVariables7_1 is a list, not a tuple (lists look like [1 2 3], tuples
>> look like 1#2#3). You can concatenate two lists using Append - for example
>>
> thanks Filip, buyt i realy do is sum this two list.
>
> attach pdf with the constraint is enclosed.
>
> it wanted to be able to add those two lists for all the period that is
> reflected in the set of ordered pairs
>
>
> I hope thank you very much that you understand to me,
>
i try with this script:
%septima restriccion: No deben existir mas de un bloque entre asignaturas w
for E in 1..1 do
SumaVariables7_1=for M in 1..Salas collect:Collect do
for W in 1..5 do
{Collect X.M.W.1}
end
end
SumaVariables7_2=for M in 1..Salas collect:Collect do
for W in 1..5 do
{Collect X.M.W.4}
end
end
in
{FD.plus SumaVariables7_1 SumaVariables7_2 septima_1}
septima_1 =<: 1
end
but raise this message:
%*************************** type error *************************
%**
%** Expected type: finite domain integer in {0,...,134 217 726}
%** At argument: 1
%** In statement: {FDP.plus
_{0#1}|_{0#1}|_{0#1}|_{0#1}|_{0#1}|_{0#1}|_{0#1}|_{0#1}|_{0#1}|_{0#1}|,,,|,,,
_{0#1}|_{0#1}|_{0#1}|_{0#1}|_{0#1}|_{0#1}|_{0#1}|_{0#1}|_{0#1}|_{0#1}|,,,|,,,
septima_1}
%**
%** Call Stack:
%** procedure 'ForProc' in file
"/home/deibyd/documentos/tesis/mozart-oz/tutorial/memoria_salas.oz",
line 321, column 3, PC = 137180160
thanks for the patience and the answer
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users