Topic
  • 1 reply
  • Latest Post - ‏2013-02-27T09:05:43Z by SystemAdmin
SystemAdmin
SystemAdmin
1883 Posts

Pinned topic integer matrix

‏2013-02-26T21:01:27Z |
I have a integer matrix "Hm".
int HmFaculty;

ct9 : forall(i in Faculty,j in Topic, r in Room,t in {2..HmFaculty})

Allocation[i][j][1][r]-Allocation[i][j][t][r]<=0;

Error: cannot use type range for int.
Please somebody help me out on this. I am stuck over here.
Updated on 2013-02-27T09:05:43Z at 2013-02-27T09:05:43Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1883 Posts

    Re: integer matrix

    ‏2013-02-27T09:05:43Z  
    Curved brackets are not needed here, and Faculty is a set(so can not be an index value). Try "t in 2..Hm[i]".