error 56 and my problem!

hi

I have a serious problem with solving my model in gams environment , i have written model of VRPTW in gams wich set i shows all nodes contains depot and customers and s is service time and at is arrival time. but i I was faced with an error 56 which is " endongenous operands for * not allowed in linear models " …can anyone help me on this issue???



objective … z=e=sum((i,j,k)$(ord(i) ne ord(j)),(t(i,j)*x(i,j,k))) ;

constraint1 (i) … sum((j,k)$(ord(i) ne ord(j) and not ord(j)=1),x(i,j,k))=e=1 ;

constraint2 (j) … sum((i,k)$(ord(i) ne ord(j) and not ord(i)=1),x(i,j,k))=e=1 ;

constraint3 (‘depot’) … sum((j,k)(not ord(j)=1),x('depot',j,k))=e=sum((j,k)(not ord(j)=1),x(j,‘depot’,k)) ;

constraint4 (‘depot’) … sum((j,k)$(not ord(j)=1),x(‘depot’,j,k))=l=1 ;

constraint5 (‘depot’) … sum((j,k)$(not ord(j)=1),x(‘depot’,j,k))=l=1 ;

constraint6 (k)… sum(i,q(i)*(sum(j,x(i,j,k))))=e=900 ;

constraint7 (i,j,k) … (x(i,j,k))*(at(i,k)+s(i)+t(i,j)-at(j,k))=e=0 ;

constraint8 (i,k) … e(i)=l=at(i,k) ;

constraint9 (i,k) … at(i,k)=l=u(i) ;


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/groups/opt_out.

Hi Nasim

Gams has this nice feature that when an error occurs, Gams puts the error number just below the place where the error occurred. It might be nice if you could give that information too instead of letting people go through your code and guess where the error might be.

Cheers

Renger


Modelworks

Gewerbestrasse 15

3600 Thun – Switzerland

+41 79 818 53 73

Info@modelworks.ch

blog.modelworks.ch







From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of nasim nasher
Sent: Sonntag, 23. Februar 2014 17:10
To: gamsworld@googlegroups.com
Subject: error 56 and my problem!



hi



I have a serious problem with solving my model in gams environment , i have written model of VRPTW in gams wich set i shows all nodes contains depot and customers and s is service time and at is arrival time. but i I was faced with an error 56 which is " endongenous operands for * not allowed in linear models " …can anyone help me on this issue???







objective … z=e=sum((i,j,k)(ord(i) ne ord(j)),(t(i,j)*x(i,j,k))) ; \ \ \ constraint1 (i) .. sum((j,k)(ord(i) ne ord(j) and not ord(j)=1),x(i,j,k))=e=1 ;



constraint2 (j) … sum((i,k)(ord(i) ne ord(j) and not ord(i)=1),x(i,j,k))=e=1 ; \ \ \ constraint3 ('depot') .. sum((j,k)(not ord(j)=1),x(‘depot’,j,k))=e=sum((j,k)(not ord(j)=1),x(j,'depot',k)) ; \ \ \ constraint4 ('depot') .. sum((j,k)(not ord(j)=1),x(‘depot’,j,k))=l=1 ;



constraint5 (‘depot’) … sum((j,k)$(not ord(j)=1),x(‘depot’,j,k))=l=1 ;



constraint6 (k)… sum(i,q(i)(sum(j,x(i,j,k))))=e=900 ;



constraint7 (i,j,k) … (x(i,j,k))
(at(i,k)+s(i)+t(i,j)-at(j,k))=e=0 ;



constraint8 (i,k) … e(i)=l=at(i,k) ;



constraint9 (i,k) … at(i,k)=l=u(i) ;


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