How can I model distances between nodes easier?
Posted: Tue Oct 26, 2021 9:24 pm
Hello,
I want to model 4 levels of material flow for a supply chain: field -> storage -> manufacturing -> end users
I am importing these 4 sets and their coordinates from an excel file like this example for the storage below:
set=s rng=indices!a2:a8 rdim=1
set s(*);
$load s
Also I have 3 matrix parameters which is the distance between the different nodes.
dist_fs(f,s), dist_sm(s,m) and dist_me(m,e)
I was wondering if there is a way to only have only 1 parameter matrix and calling an n by n matrix (with all the nodes) like so: dist(f,s), dist(s,m), dist(m,e).
I tried doing it but I get an error about uncontrolled sets.
How do I model this in GAMS?
I want to model 4 levels of material flow for a supply chain: field -> storage -> manufacturing -> end users
I am importing these 4 sets and their coordinates from an excel file like this example for the storage below:
set=s rng=indices!a2:a8 rdim=1
set s(*);
$load s
Also I have 3 matrix parameters which is the distance between the different nodes.
dist_fs(f,s), dist_sm(s,m) and dist_me(m,e)
I was wondering if there is a way to only have only 1 parameter matrix and calling an n by n matrix (with all the nodes) like so: dist(f,s), dist(s,m), dist(m,e).
I tried doing it but I get an error about uncontrolled sets.
How do I model this in GAMS?