I will be glad if you could help me about this.
The gams file is attached.
–
rota14012015-son.gms (1.58 KB)
I will be glad if you could help me about this.
The gams file is attached.
–
rota14012015-son.gms (1.58 KB)
Hi Dogancan
You had forgotten to add z =E= in the objective constraint and defined the model over all constraints, but hadn’t defined the equation objs2 (I commented it out).
Cheers
Renger
equations
obj objective value
*obj2 obj2s
const1 bir rota kesin kullanýlacak
const2(i)
const3(i)
const4(i)
;
obj… z =e= sum (j$(firstexit(j)),x(‘1’,j)d(‘1’,j)(f+(m/s))) ;
*((f+(a(i,j)/s))*a(i,j)*x(i,j)+(f+(e(j,q)/s))*e(j,q)*n(j,q)+(f+(r(q,z)/s))*r(q,z)*g(q,z)+(f+(o(z,v)/s))*o(z,v)*r(z,v)+
const1 … sum(j$(firstexit(j)),x(‘1’,j)) =e= 1;
const2(i)$(firstexit(i))… sum(j$second(j),x(i,j)) =e= x(‘1’,i);
const3(i)$(second(i))… sum(j$secondexit(j),x(i,j)) =e= sum(j$(firstexit(j)),x(j,i));
const4(i)(secondexit(i)).. x(i,'10') =e= sum(j(second(j)),x(j,i));
model cargoroute /all/;
solve cargoroute minimizing z using MIP ;
From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Dogancan Savas
Sent: Mittwoch, 14. Januar 2015 18:13
To: gamsworld@googlegroups.com
Subject: Would you help me to write objective function?
I will be glad if you could help me about this.
The gams file is attached.
–
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.