Search found 9 matches

by GAMS_practitioner
1 year ago
Forum: Syntax
Topic: bidirectional Dijkstra GAMS
Replies: 0
Views: 2602

bidirectional Dijkstra GAMS

I need to do some preprocessing on a simple transport ntwork to find a set of nodes and then create a parameter/set. More specifically, I need to find the the shortest trip time from location i to location j then to location i′ . Then sore all such "j" locations inside a set. Is this possi...
by GAMS_practitioner
1 year ago
Forum: Syntax
Topic: How to find a set of edges that are reachable within some time limit?
Replies: 0
Views: 16462

How to find a set of edges that are reachable within some time limit?

Hi, Could anyone please suggest a nice fast way to find a set of nodes and edges that are accesible from some source node within a predifined threshold in GAMS? I'm trying to solve this as follow but Is there any way? Like to run this as a model? or is there any better way to compute everything in o...
by GAMS_practitioner
1 year ago
Forum: Syntax
Topic: How to only display a specific parameter?
Replies: 2
Views: 1667

Re: How to only display a specific parameter?

Many Manyu Many thanks Michael. I've never heard of that before. Thanks!
by GAMS_practitioner
1 year ago
Forum: Syntax
Topic: How to only display a specific parameter?
Replies: 2
Views: 1667

How to only display a specific parameter?

Hi Friends, If you have created a parameter `param(i,j,s)` where `set i /1*500/ s /s1*s200/` and wanted to just display it for `s22` ,for example, how did you do that? I've tried to run `display param(i,j,"s22")` but it doesn't work. Is there a way to do that? Also using a loop in GAMS is ...
by GAMS_practitioner
1 year ago
Forum: Syntax
Topic: Better way for Using GDXXRW to import from excel
Replies: 2
Views: 1701

Re: Better way for Using GDXXRW to import from excel

Hi Michael, It's very informative to me. Thanks a lot!
by GAMS_practitioner
1 year ago
Forum: Syntax
Topic: Better way for Using GDXXRW to import from excel
Replies: 2
Views: 1701

Better way for Using GDXXRW to import from excel

I have an excel file that want to read its coulmn separately and assign them to some paprameters. So, for example I have a set of locations " set i /1*12/" each of the location has some attributes: density, FD,S price, and income The only way I know how to import these is using this format...
by GAMS_practitioner
1 year ago
Forum: Syntax
Topic: Is there something like varible in other languages in GAMS for softcoding?
Replies: 2
Views: 1636

Is there something like varible in other languages in GAMS for softcoding?

Hi friends, I'd like to write a model in GAMS and run it for a number of different data. So, for example, in one run I might have a set j /1*30/ and in other run I might want to change it to set j/1*50/. And many other similar cases. So, when this is the case, in other languages you go with softcodi...
by GAMS_practitioner
1 year ago
Forum: Modeling
Topic: Is Bellman Ford Algorithm exist in GAMS documentation?
Replies: 0
Views: 2064

Is Bellman Ford Algorithm exist in GAMS documentation?

Hi GAMS community, I was reading some of the codes in GAMS documenations to find out the way it works. I particulary am looking for a simple implemetation of shortest path Bellman Ford algorithem to configure a set of parameters and then use it as an indicies inside the model. Mainly for some constr...