another question I cannot overcome concerns two sets of identifiers; g and g’
I have a set g, a bunch of identical squared grids next to eachother. And I need to include another set of g, wich I call g’, which are other than g. so that biomass can be transported from g to g’, e.g. to calculate transport costs. the example is:
elements g are 1 2 3 with specific quanities transported to the other grids. I therefore need to make another set g’ which is not identical to g, as to enable transport from e.g. grid 5 to its surroundings, to grid 1, or 2, or 3,
4 5 6 4,6,7,8 or 9. how do I put that down in GAMS? maybe as: sets g / 1*9 /
7 8 9 g’ / ?? /
the actual formula is: TCb(t) =e= ∑(i,l) UTCb(l) * [ ∑ (g,g’) Qb(i,g,l,g’,t) * a * b ]
where a and b are parameters
where Qb(i,g,l,g’,t) is the flow rate of biomass i which needs to be transported with transport mode l between elements g and g’ in time t
another thing related to this which I don’t know how to annotate in GAMS conserns the sets to be summed, under the ∑ sign. the first is (i,l), which is not ∑(i)∑(l), but ∑(i,l). and the second is ∑(g,g’) instead of ∑(g)∑(g’)
anyone got an idea? lots of thanks guys!!
kind regards from ben
–
To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/DHg8su1mCUEJ.
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.