--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at http://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/sHNEp-Vru5g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ampl+uns...@googlegroups.com.
sum {k in K,l in K diff {k}} y[k,l]
ampl: set K := 1..5;
ampl: var y {K,K} := Uniform01();
ampl: display sum {k in K, l in K diff {k}} y[k,l];
sum{k in K, l in K diff {k}} y[k,l] = 9.30924 Hi all,Can anyone please kindly help below. I need to do double summation but index l should not equal to k. Below is what I write but seems wrong. Do you have any suggestions? Thanks!sum {k in K,l in K diff {k}} y[k,l]
Best,Ruonan
On Tuesday, 20 October 2015 at 14:42:22 UTC-5 Feras Matar wrote:
Hi,
Please how can I write the following in AMPL
I tried several times but always there is an error
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ampl/9ff1f68a-3867-4477-802c-34fac478fa79n%40googlegroups.com.