Thank you for your reply.
I have a 5x5 grid with 25 grid cells having coordinates (1,1), (1,2).....(5,4), (5,5).
For (1,1) grid cell, I want to generate random binary (0 or 1) parameter that indicates whether there is a connection between (1,1) and each of the other available 24 cells.
I want to generate random binary parameters B(i,j, x,y)={1,0}
Where (i,j)=(1,1) fixed
And (x,y)=(1,2)....(5,5)
1 indicates (i,j) and (x,y) are connected.
I also want give the limit of the number of connections that (1,1) can have.
Thank you.
--
You received this message because you are subscribed to a topic in the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ampl/xVaOcCqOJkY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ampl/xVaOcCqOJkY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.