Search found 7 matches

by noob
6 years ago
Forum: Syntax
Topic: coordinates
Replies: 1
Views: 2876

coordinates

I was hoping beyond hope to find help in here but unfortunately i couldn't I have been able to write my model (location problem) in gams but since i am very new to it i have a small problem Here it is: I have 2 sets in my models i /p1*p9,rsu1*rsu3/ 1- potetial sites p(i) /p1*p3/ 2- Rsu(i) /rsu1*rsu2...
by noob
6 years ago
Forum: Syntax
Topic: various values
Replies: 1
Views: 2320

various values

i was wondering how can a decision variable like X get its value from a set like {1,2,3,4,5}

i know its kind of basic but i am new to gams so...

any kind of help is much appreciated
by noob
6 years ago
Forum: Syntax
Topic: parameter value (Help! plz!)(anyone?)
Replies: 5
Views: 4617

Re: parameter value (Help! plz!)

Hi It is not clear to me what you exactly want: Something like Xcoord Ycoord RSU1 P1.X P1.Y ? But you have 8 RSU and 9 potential sites. Otherwise you could introduce a mapping between RSU and P: mapRSU_P(rsu,p) /RSU1.P1, RSU2.P2, / loop(mapRSU_O(rsu,p), coord(RSU, "Xcoord") = xpoint(p); c...
by noob
6 years ago
Forum: Syntax
Topic: parameter value (Help! plz!)(anyone?)
Replies: 5
Views: 4617

Re: parameter value (Help! plz!)

Hi It is not clear to me what you exactly want: Something like Xcoord Ycoord RSU1 P1.X P1.Y ? But you have 8 RSU and 9 potential sites. Otherwise you could introduce a mapping between RSU and P: mapRSU_P(rsu,p) /RSU1.P1, RSU2.P2, / loop(mapRSU_O(rsu,p), coord(RSU, "Xcoord") = xpoint(p); c...
by noob
6 years ago
Forum: Syntax
Topic: parameter value (Help! plz!)(anyone?)
Replies: 5
Views: 4617

Re: parameter value (Help! plz!)

thank you so much for your quick answer sir... you cant imagine how much i appreciate it :oops: what i realy want to do is to find the best place for RSUs to achieve the least cost the location of RSUs cant just be anything and RSUs have to get their coordinates form a predetermined places AKA "...
by noob
6 years ago
Forum: Syntax
Topic: parameter value (Help! plz!)(anyone?)
Replies: 5
Views: 4617

Re: parameter value (Help! plz!)

the complete code and model is attached here
i want members of rsu set to get their coordinates from members of set "p potential sites"
please help me if can...
Fog Computing - vehicular Network.gms
complete model
(1.32 KiB) Downloaded 322 times
by noob
6 years ago
Forum: Syntax
Topic: parameter value (Help! plz!)(anyone?)
Replies: 5
Views: 4617

parameter value (Help! plz!)(anyone?)

Cloud you help me please? i am truly new to the gams and hopeless!!
How can I make R1 and R2 get their coordinates from {(1,1),(2,2),(3,3),(4,4)}? the code is attached below
Untitled.png
Untitled.png (4.04 KiB) Viewed 4617 times