coordinates

Problems with syntax of GAMS
Post Reply
noob
User
User
Posts: 7
Joined: 6 years ago

coordinates

Post by noob »

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/

And 2 parameters x_point (i) and y_point(i) representing coordinates
The location of potential sites are known
How can i get members of rsu set to get their coordinates from potential sites?
I mean as a derision variable the solver should find the best location for RSUs among potential sites?
Fog Computing - vehicular Network.gms
(1.33 KiB) Downloaded 326 times
Attachments
Untitled5.png
Untitled5.png (13.66 KiB) Viewed 2827 times
Untitled4.png
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: coordinates

Post by Renger »

Hi Noob

Take a look at https://www.gams.com/latest/gamslib_ml/ ... _emfl.html
and https://www.gams.com/latest/testlib_ml/ ... mpsol.html
Perhaps that these models will give you some ideas.
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply