Is it possible to use sets and variables this way ?
Posted: Fri May 18, 2018 1:56 pm
Hi,
I would like a variable T to be defined in such a way that it takes the following values : T(1) to T(10)
The thing is, my problem requires using two sets in a specific way :
Is it possible to use sets B (1 to 4) and C (1 to 3) so that I can write something like T( B+3*(C-1) ) and finally have T(1) to T(10) ?
If it is possible, I don't know how I would have to define my variable T and the associated set T(?) ?
If not, is there another trick that could be useful ?
Thank for the help !
Sim
I would like a variable T to be defined in such a way that it takes the following values : T(1) to T(10)
The thing is, my problem requires using two sets in a specific way :
Is it possible to use sets B (1 to 4) and C (1 to 3) so that I can write something like T( B+3*(C-1) ) and finally have T(1) to T(10) ?
If it is possible, I don't know how I would have to define my variable T and the associated set T(?) ?
If not, is there another trick that could be useful ?
Thank for the help !
Sim