sets: id/1..15/:rank,cer; field/1..1/:; speciality/1..3/: ; specialityy/1..3/: ; anyname(id,field,speciality,specialityy):x; endsets data: anyname= @ole(); rank= @ole ("testing1.xlsx","E2:E16"); cer= @ole(,"F2:F16"); enddata max= @sum(anyname(i,j,k,l): x(i,j,k,l)*(rank(i)+cer(i))); !cons; !@for(field(j): !@for(speciality(k): !@for(specialityy(l):; @sum(anyname(i,j,k,l): x(i,j,k,l))= 6 ; ! !integer; @for(id(i:) @for(field(j:) @for(speciality(k:) @for(specialityy(l:) @bin(x(i,j,k,l));)))) data: @ole = )(x; enddata