multi traveling salesmen problem

Hi,
in mTSP , I used the following constraints:

con1(‘1’)…sum(j$(ord(j)>1), x(‘1’,j)) =e=m
con2(‘1’)…sum(j$(ord(j)>1), x(j,‘1’)) =e= m

Ensure that exactly m salesmen depart from node 1

Ensure that exactly m salesmen return to node 1

and I had [scalar m/2/] as number of salesmen



everything is ok, except that it shows the follwoing error after [con1] statement:

Error 409:

Unrecognizable item - skip to find a new statement

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



Please, can you help me



\

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.
For more options, visit https://groups.google.com/d/optout.

If I understand your coding correctly, I can say x (‘1’,j) can be written as x(j,i) where j,i are from the same set (i.e., alias(j,i)). Doing this, you declare and define your constraints clearly as follows:

con1(j) (ord(j) eq 1).. sum(i (ord(i) gt j), x(j,i)) =e=m
con2(i) (ord(i) eq 1).. sum(j (ord(j) gt i), x(j,i)) =e= m

Good luck

On Wed, Apr 15, 2015 at 3:06 AM, سلطان عبد الرحمن wrote:

Hi,
in mTSP , I used the following constraints:

con1(‘1’)…sum(j$(ord(j)>1), x(‘1’,j)) =e=m
con2(‘1’)…sum(j$(ord(j)>1), x(j,‘1’)) =e= m

Ensure that exactly m salesmen depart from node 1

Ensure that exactly m salesmen return to node 1

and I had [scalar m/2/] as number of salesmen



everything is ok, except that it shows the follwoing error after [con1] statement:

Error 409:

Unrecognizable item - skip to find a new statement

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



Please, can you help me



\

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.
For more options, visit https://groups.google.com/d/optout.



\


\

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.
For more options, visit https://groups.google.com/d/optout.