Variable with multiple indices

Hello every one!
I need your help please!

I have a little problem like this:

Sets
Lp(p,l);

Scalar b1;

Variables
UATP1(i,o,p,l,t)
pmp(i,p,l,t);

Equations
Rtr5A(p,l,i,t);

Rtr5A(p,l,i,t)… UATP1(i,p,l,t) =e= b1pmp(i,p,l,t);


But I need to specify in the Rtr5 that the only parameter “l” must belong to the previous set Lp(p,l). I tried to put this sentence like this:


Rtr5A(p,l,i,t)$Lp(p,l)… UATP1(i,p,l,t) =e= b1
pmp(i,p,l,t);

But it still doesnt work, it comes out an error message.

Can any one please help me?

\

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

Dear Hanzel
Try the following code:

Sets
Lp(p,l);

Scalar b1;

Variables
UATP1(p,l,i,t)
pmp(p,l,i,t);

Equations
Rtr5A(p,l,i,t);
Rtr5A(Lp,i,t)… UATP1(Lp,i,t) =e= b1*pmp(Lp,i,t);

On 4/25/13, Hanzel Grillo Espinoza wrote:

Hello every one!
I need your help please!

I have a little problem like this:

Sets
Lp(p,l);

Scalar b1;

Variables
UATP1(i,o,p,l,t)
pmp(i,p,l,t);

Equations
Rtr5A(p,l,i,t);

Rtr5A(p,l,i,t)… UATP1(i,p,l,t) =e= b1*pmp(i,p,l,t);

But I need to specify in the Rtr5 that the only parameter “l” must belong
to the previous set Lp(p,l). I tried to put this sentence like this:

Rtr5A(p,l,i,t)$Lp(p,l)… UATP1(i,p,l,t) =e= b1*pmp(i,p,l,t);

But it still doesnt work, it comes out an error message.

Can any one please help me?


“gamsworld” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


\