Search found 6 matches

by MatQUT94
4 years ago
Forum: Syntax
Topic: Dynamic set allocation with binary variable
Replies: 9
Views: 5457

Re: Dynamic set allocation with binary variable

Thank you so much Fred!
by MatQUT94
4 years ago
Forum: Syntax
Topic: Dynamic set allocation with binary variable
Replies: 9
Views: 5457

Re: Dynamic set allocation with binary variable

One last question:

You mentioned in your formula (linear version):

Code: Select all

houseDistL.. 
distL =e= sum((p1,h1,p2,h2), w(p1,p2)*y(p1,[b]h2[/b],p2,h2))
;
But in the last term in the y it's

Code: Select all

y(p1,[b]h1[/b],p2,h2)
right?
by MatQUT94
4 years ago
Forum: Syntax
Topic: Dynamic set allocation with binary variable
Replies: 9
Views: 5457

Re: Dynamic set allocation with binary variable

Hi Fred,

thank you so much!! :) :)
This works perfectly for me and does want I want to archive having the distance in my model.
Thanks so much Fred!!
by MatQUT94
4 years ago
Forum: Syntax
Topic: Dynamic set allocation with binary variable
Replies: 9
Views: 5457

Re: Dynamic set allocation with binary variable

Hi, okay sure, I will try to introduce my model and thoughts as compact as possible: I changed the model a little bit within the last 2 days. The overall goal is to develop a model for urban city planers, like very basic in the beginning starting with an empty map which should stand for a new suburb...
by MatQUT94
4 years ago
Forum: Syntax
Topic: Dynamic set allocation with binary variable
Replies: 9
Views: 5457

Re: Dynamic set allocation with binary variable

Hi Fred, thank you so much for your answer, really appreciate your help! The code you mentioned works fine for the set after optimization, but in my example I need the set during the process, is this even possible in general, since I'm not sure if GAMS allows such a dynamic set allocation? If its po...
by MatQUT94
4 years ago
Forum: Syntax
Topic: Dynamic set allocation with binary variable
Replies: 9
Views: 5457

Dynamic set allocation with binary variable

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....