problem :sigma ==> if i not equal j !!

i cant write speak english very good.

sets
p/… /
i(p)
j(p)
;
equation
eq(i);

problem :

eq(i)… sigma ( j,x(i,j) ) ====> { if i not equal j !!}

please help!
best regards.



M.A. BASU.ac.ir 9013174002
Hessam parand

\

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

Hi,

You can perhaps use:
eq(i)$(i ne j)… sigma(j, x(i,j))

I am assuming that you don’t have to evaluate the equation for i == j

Thanks
Shashank


On Tue, Mar 12, 2013 at 7:42 AM, hessam parand wrote:

i cant write speak english very good.

sets
p/… /
i(p)
j(p)
;
equation
eq(i);

problem :

eq(i)… sigma ( j,x(i,j) ) ====> { if i not equal j !!}

please help!
best regards.



M.A. BASU.ac.ir 9013174002
Hessam parand

\

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



\

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

Reply-to: gamsworld@googlegroups.com

If I understand correctly what you intend to do (i.e. “Sigma” is meant for summation?), then this formulation should do the job :

eq(i) … sum(j $(not sameas(i,j)), x(i,j)) =e= ;

hope this helps
best regards

Le mardi 12 mars 2013 13:42:18 UTC+1, hessam parand a écrit :

i cant write speak english very good.

sets
p/… /
i(p)
j(p)
;
equation
eq(i);

problem :

eq(i)… sigma ( j,x(i,j) ) ====> { if i not equal j !!}

please help!
best regards.



M.A. BASU.ac.ir 9013174002
Hessam parand

\

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\