Hi,
I am currently working with gams to modell a facility location problem, due to a thesis. sadly i am new to this.
I put the file in the appendix. to put the problem short.
how do i build a constraint, so that at every possible place " i " only one station with size " s " can be opened. ?
so far my approach was
Equation
Constraint only one station can be activated on place i
Constraint..
sum((i,s), akt(i,s)) =l= 1 something like that with akt(i,s) being a binary variable to: 1 if in place i a station with size s is aktivated, 0 else
Need Help with constraint for a Facility Location model
Need Help with constraint for a Facility Location model
- Attachments
-
- Facility location Problem with different sizes.gms
- (2.72 KiB) Downloaded 218 times
Re: Need Help with constraint for a Facility Location model
Hi ToSan
THis would probably be the constraint you are looking for:
At every i there can only be one or zero plants.
Cheers
Renger
THis would probably be the constraint you are looking for:
Code: Select all
OnlyOneI(i)..
sum(s, akt(i,s)) =l= 1;
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Enjoy modeling even more: Read my blog on modeling at The lazy economist