some generic questions on MILP: a model for biorefineries (question 2: formula applies to every technology other than (!) subset)

Dear all,

I want to ask you guys another question for my biorefinery model, a MILP one.
I made an equation wich is applicable only to a subset of identifiers, but dont know how to put that down in GAMS. here’s the example

cddgs1(“ddgs”,k,g,t)… P(“ddgs”,k,g,t) =e= 0 (voor technologies k other than tech(k) ) ;
where k is the technology set, and tech(k) a subset of those technologies.
how to you write that down in GAMS?

second: 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:


lots of thanks guys!!

greetings de benha


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/dgg95gMVORAJ.
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.

Hi Benjamin



Use the dollar operation in the equation:



cddgs1(“ddgs”,g,t)$(not tech(k))… P(“ddgs”,tech,g,t) =e= 0 (voor technologies k other than tech(k) ) ;



You didn’t add the example for your second question.


Renger van Nieuwkoop


Modelworks

Gewerbestrasse 15

3600 Thun – Switzerland

+41 79 818 53 73

Info@modelworks.ch

blog.modelworks.ch







Von: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] Im Auftrag von benjamin visser
Gesendet: Mittwoch, 16. Januar 2013 14:58
An: gamsworld@googlegroups.com
Betreff: some generic questions on MILP: a model for biorefineries (question 2: formula applies to every technology other than (!) subset)



Dear all,



I want to ask you guys another question for my biorefinery model, a MILP one.

I made an equation wich is applicable only to a subset of identifiers, but dont know how to put that down in GAMS. here’s the example



cddgs1(“ddgs”,k,g,t)… P(“ddgs”,k,g,t) =e= 0 (voor technologies k other than tech(k) ) ;

where k is the technology set, and tech(k) a subset of those technologies.

how to you write that down in GAMS?



second: 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:





lots of thanks guys!!



greetings de benha


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/dgg95gMVORAJ.
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.


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.