Page 1 of 1

coordinates

Posted: Sun Feb 18, 2018 3:23 am
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 331 times

Re: coordinates

Posted: Sun Feb 18, 2018 11:31 am
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