Problem!!

Balaji balaji at email.arizona.edu
Fri Apr 9 01:15:59 EDT 2004


Hello everybody..

I have a problem!!!

suppose i want to define

c1=x(i)+y(i)<=b for i in s1 ------------ suppose it is the first
constraint..
c2=x(i)+y(i)<=b for i in s2------------- suppose it is the second
constraint..

now as i is indexed over s1 so is c1.. but what it does is it overites
the first constraint..

I guess there should be some problem with the iterators...

any help in this regard is apreciated..

Thanx

Balaji



More information about the Python-list mailing list