Dynamic set allocation with binary variable
Posted: Tue Sep 10, 2019 10:45 am
Hello guys,
currently I'm still working on a GAMS model which allocates a house or a tree to each cell of an empty map.
For example a map contains 10 pixels/cells and the model should fill the map with either tree or house. Each cell must be built once (no cell contains two options and no cell null..)
In my model I have two binary decision variables x(p,h)=1 if cell p is built with house h and y(p,v)=1 if cell p is built with vegetation/tree v.
Since I want to maximize the distance between the houses is it possible to create a dynamic subset which contains only the cells p which have a house on it.
So the syntax should be anything like this:
pbuilt(p)$(x(p,h)=1) =yes;
where pbuilt is a dynamic subset of P.
Do you guys have any idea if this is possible in general or is it impossible and doesn't make any sense to use binary decision variable as an allocation condition for dynamic sets?
Since I'm kind of a beginner in GAMS I would be very thankful for any advice from you guys!
Best regards from Australia
currently I'm still working on a GAMS model which allocates a house or a tree to each cell of an empty map.
For example a map contains 10 pixels/cells and the model should fill the map with either tree or house. Each cell must be built once (no cell contains two options and no cell null..)
In my model I have two binary decision variables x(p,h)=1 if cell p is built with house h and y(p,v)=1 if cell p is built with vegetation/tree v.
Since I want to maximize the distance between the houses is it possible to create a dynamic subset which contains only the cells p which have a house on it.
So the syntax should be anything like this:
pbuilt(p)$(x(p,h)=1) =yes;
where pbuilt is a dynamic subset of P.
Do you guys have any idea if this is possible in general or is it impossible and doesn't make any sense to use binary decision variable as an allocation condition for dynamic sets?
Since I'm kind of a beginner in GAMS I would be very thankful for any advice from you guys!
Best regards from Australia