Glider.ampl, line 88 (offset 1143):
2 indices for set of dimen 1
context: var Q {i in N, (j,l) in >>> M: <<< l>j} >=0, <=1;
Glider.ampl, line 152 (offset 3770):
2 indices for set of dimen 1
context: Q1 {i in N,(j,l) in >>> M: <<< l>j}: Q[j,l,i]*(x[j,i]-x[l,i]-dx)>=0;
Glider.ampl, line 152 (offset 3784):
Q needs 2 subscripts, not 3
context: Q1 {i in N,(j,l) in M: l>j}: >>> Q[j,l,i] <<< *(x[j,i]-x[l,i]-dx)>=0;
Glider.ampl, line 153 (offset 3836):
2 indices for set of dimen 1
context: Q2 {i in N,(j,l) in >>> M: <<< l>j}: Q[j,l,i]*(x[l,i]-x[j,i]-dx)>=0;
Glider.ampl, line 153 (offset 3850):
Q needs 2 subscripts, not 3
context: Q2 {i in N,(j,l) in M: l>j}: >>> Q[j,l,i] <<< *(x[l,i]-x[j,i]-dx)>=0;
Glider.ampl, line 154 (offset 3902):
2 indices for set of dimen 1
context: Q3 {i in N,(j,l) in >>> M: <<< l>j}: Q[j,l,i]*(h[j,i]-h[l,i]-dh)>=0;
Glider.ampl, line 154 (offset 3916):
Q needs 2 subscripts, not 3
context: Q3 {i in N,(j,l) in M: l>j}: >>> Q[j,l,i] <<< *(h[j,i]-h[l,i]-dh)>=0;
Glider.ampl, line 155 (offset 3968):
2 indices for set of dimen 1
context: Q4 {i in N,(j,l) in >>> M: <<< l>j}: Q[j,l,i]*(h[l,i]-h[j,i]-dh)>=0;
Glider.ampl, line 155 (offset 3982):
Q needs 2 subscripts, not 3
context: Q4 {i in N,(j,l) in M: l>j}: >>> Q[j,l,i] <<< *(h[l,i]-h[j,i]-dh)>=0;
Second code;
var Q {i in N, j in M,l in O[j]: l>j} >=0, <=1;
constraints;
Q1 {i in N,j in M,l in O[j]: l>j}: Q[j,l,i]*(x[j,i]-x[l,i]-dx)>=0;
Q2 {i in N,j in M,l in O[j]: l>j}: Q[j,l,i]*(x[l,i]-x[j,i]-dx)>=0;
Q3 {i in N,j in M,l in O[j]: l>j}: Q[j,l,i]*(h[j,i]-h[l,i]-dh)>=0;
Q4 {i in N,j in M,l in O[j]: l>j}: Q[j,l,i]*(h[l,i]-h[j,i]-dh)>=0;
Error;
Glider.ampl, line 88 (offset 1146):
O is not defined
context: var Q {i in N, j in M,l in >>> O[j]: <<< l>j} >=0, <=1;
Glider.ampl, line 152 (offset 3779):
O is not defined
context: Q1 {i in N,j in M,l in >>> O[j]: <<< l>j}: Q[j,l,i]*(x[j,i]-x[l,i]-dx)>=0;
Glider.ampl, line 153 (offset 3851):
O is not defined
context: Q2 {i in N,j in M,l in >>> O[j]: <<< l>j}: Q[j,l,i]*(x[l,i]-x[j,i]-dx)>=0;
Glider.ampl, line 154 (offset 3923):
O is not defined
context: Q3 {i in N,j in M,l in >>> O[j]: <<< l>j}: Q[j,l,i]*(h[j,i]-h[l,i]-dh)>=0;
Glider.ampl, line 155 (offset 3995):
O is not defined
context: Q4 {i in N,j in M,l in >>> O[j]: <<< l>j}: Q[j,l,i]*(h[l,i]-h[j,i]-dh)>=0;
How to defined the ¨O¨ as a set or var or param?
Thanks,
Dinesh.
--
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 https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.