I have a mapping between products and the loading port from which they are sourced

Set LPort_Prod_Mapping (LPort,Product) /LPort1.A, LPort2.A, LPort3,B,LPort4.C/

Now I have a variable X such that X is a function of Lport and Dport (destination port) ie X(Lport,Dport)

I now want to write an equation which is a function of Product and DPort instead of Lport and Dport

## What I tried is something like this for which I am getting an error.

Eqn_flow (Product,DPort)( LPort_Prod_Mapping (LPort,Product)).. X(Lport,Dport)=e=constant(Product,DPort)
\
\
the error points to ( LPort_Prod_Mapping (LPort,Product)) and says “Uncontrolled set entered as constant”!

Where am I making a mistake? I believe the mapping between Lport and Product should help me do what I am trying to do. Can anyone please help?

\

To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/ZGpATHZukKgJ.

To post to this group, send email to gamsworld@googlegroups.com.

To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.