coordinates

Problems with syntax of GAMS
Post Reply
noob
User
User
Posts: 7
Joined: 10 months ago

coordinates

Post by noob » 10 months ago

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 69 times
Attachments
Untitled5.png
Untitled5.png (13.66 KiB) Viewed 550 times
Untitled4.png

User avatar
Renger
Posts: 221
Joined: 2 years ago

Re: coordinates

Post by Renger » 10 months ago

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

Post Reply