Hello everybody,
I need to write an equation for my model.
I m trying to write T(i) > T(i1) for every i .
T is decision variable and i is index for T variable.
i is a set which includes 1,2,3,...,N. N is very big integer.
Can you help me please?
Thanks a lot.
Index change for constraints

 User
 Posts: 81
 Joined: 2 years ago
 Location: Rosario  Argentina
Re: Index change for constraints
Hi, Is T a binary or continuous variable?
Is "T(i)" greater (>) or greater than or equal (>=) than "T(i1)" ?
Bye
Is "T(i)" greater (>) or greater than or equal (>=) than "T(i1)" ?
Bye
Re: Index change for constraints
Hi,
T is continuous and positive variable.
Constraint has equality.
In gams code is like " eq(i).. T(i) =g= T(i1)"
However for the i1 case it can not run.
Thanks.
T is continuous and positive variable.
Constraint has equality.
In gams code is like " eq(i).. T(i) =g= T(i1)"
However for the i1 case it can not run.
Thanks.

 User
 Posts: 81
 Joined: 2 years ago
 Location: Rosario  Argentina
Re: Index change for constraints
Ok, you must start with the second value of i
eq(i)$(ord(i) ge 2).. T(i) =g= T(i1);
Bye!
eq(i)$(ord(i) ge 2).. T(i) =g= T(i1);
Bye!
Re: Index change for constraints
That is worked. Thanks a lot