I have a problem about calculation which I aimed to calculate on Gams.
Here is my code about this part.
Code: Select all
eq1(i)..u(i)=g=1;
eq2(i)..u(i)+m(i)*(1-x(i))=g=sum(j$(ord(i)<>ord(j)),(power(h(i,j),2)*x(j)));
How can I ensure the GAMS can calculate the real values for u(i)? (I can not add u(i) as a variable, because the model must be stay as linear.)