I really need to know that too.
my objective variable is z. But I also want to save the shortest/cost minimal way/path to get z.
I want to have a cumulative z.
if(f.l(i,j) > 0,
cumLCC2(j) = cum + f.l(i,j);
cum = cumLCC2(j);
);
It is working but I have the problem that f.l is sorted in a wrong way, so that a later node is coming to early…
Can anybody help me?
Am Freitag, 10. April 2015 22:25:11 UTC+2 schrieb Alex Hans:
I would like to know the same!
Any solutions?
Idea is like this one: But it is not working…
display i$(f.l(o,i,j) gt 0)
it don’t have to be display - it could also be saved in a new subset of “i” like path(i)
Am Mittwoch, 17. Dezember 2014 17:22:56 UTC+1 schrieb Carlos A. Gonzalez-Calderon:
Hi,
Besides obtaining the total cost from all origins to all destinations, does anyone have any idea of how to display the shortest path in GAMS (i.e., show the links or nodes from the origin to the destination in the shortest path based on the total cost)?
Thanks
–
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.