I have difficulty to define a decision variable in Ampl. I have x[p,t,n], which p, t and n are parameter. However, n can gets amount from 1 to t each time. it means if for example in one constraint I have x[p,t,n] which p=1,2, t=1,2,3 each time I want n to get amount till t. for example: p=2, t=3, n=1,2,3. How can I define this?
Regards,
Akram