Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2013-02-27T09:05:43Z by SystemAdmin
SystemAdmin
SystemAdmin
1883 Posts
ACCEPTED ANSWER

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
    ACCEPTED ANSWER

    Re: integer matrix

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