Hi,
Here is the set that I have and is a subset of AllVariables with the index i_DistWeightVar. Note that the variables in this set have exactly the same indices and in the same order, (i.e., i_period, i_Terminal, i_Source, i_Product, i_Fleet, i_Zone, i_Customer).

Here is the parameter that I create that only differs with his first index than the variables in the set above.

I am hoping to be able to make assignments by using a function like StringToVariable given below:

Anything you can give me to use on the RHS of this assignment?
Best,
Gorkem