Reply-to: gamsworld@googlegroups.com

Hi Guys,

I tried following $ equation and it compiled perfectly

noback(i)… sum(j$(seq(j) gt 3),x(i,j)) =e= 0

Then i wanted to expend this to include one more set k (summing over k

as well on RHS) and changing the condition a bit as below -

noback(i)… sum((j$(seq(j)<=seq(i)),k),x(i,j,k)) =e= 0;

I get following error messages -

8 ‘)’ expected

37 ‘=l=’ or ‘=e=’ or ‘=g=’ operator expected

148 Dimension different - The symbol is referenced with more/less

indices as declared

409 Unrecognizable item - skip to find a new statement

looking for a ‘;’ or a key word to get started again

**** 4 ERROR(S) 0 WARNING(S)

All symbols and notations are define before cimpiling,

Not able to get this thru, please help if someone can,

thanks

Anupam

–~–~---------~–~----~------------~-------~–~----~

To post to this group, send email to gamsworld@googlegroups.com

To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com

For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en

-~----------~----~----~----~------~----~------~–~—

\

Thanks a lot Arne,

yes i was wrong there,

Now it is working,

thanks again,

regards,

Anupam

On Dec 29, 5:28 pm, “Arne Stolbjerg Drud” wrote:

Hi Anupam

You need all the sets Ãn the sum before the condition, i.e.

noback(i)… sum((j,k)$(seq(j) >

As an alternative, you can use two sums as in

noback(i)… sum(j$(seq(j) >

Good luck

Arne

Arne Stolbjerg Drud

ARKI Consulting & Development A/S

Bagsvaerdvej 246A, DK-2880 Bagsvaerd, Denmark

Phone: (+45) 44 49 03 23, Fax: (+45) 44 49 03 33, email: ad…@arki.dk

-----Oprindelig meddelelse-----

Fra: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] PÃ¥ vegne

af Anupam

Sendt: 29. december 2008 12:03

Til: gamsworld

Cc: anupa...@infosys.com; anupam...@rediffmail.com

Emne: conditional operator

Hi Guys,

I tried following $ equation and it compiled perfectly

noback(i)… sum(j$(seq(j) gt 3),x(i,j)) =e= 0

Then i wanted to expend this to include one more set k (summing over k

as well on RHS) and changing the condition a bit as below -

noback(i)… sum((j$(seq(j) >

I get following error messages -

8 ‘)’ expected

37 ‘=l=’ or ‘=e=’ or ‘=g=’ operator expected

148 Dimension different - The symbol is referenced with more/less

indices as declared

409 Unrecognizable item - skip to find a new statement

looking for a ‘;’ or a key word to get started again

**** 4 ERROR(S) 0 WARNING(S)

All symbols and notations are define before cimpiling,

Not able to get this thru, please help if someone can,

thanks

Anupam

–~–~---------~–~----~------------~-------~–~----~

To post to this group, send email to gamsworld@googlegroups.com

To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com

For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en

-~----------~----~----~----~------~----~------~–~—

\