Need Help with constraint for a Facility Location model

Problems with modeling
Post Reply
ToSan
User
User
Posts: 1
Joined: 4 years ago

Need Help with constraint for a Facility Location model

Post by ToSan »

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
Attachments
Facility location Problem with different sizes.gms
(2.72 KiB) Downloaded 214 times
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: Need Help with constraint for a Facility Location model

Post by Renger »

Hi ToSan

THis would probably be the constraint you are looking for:

Code: Select all

OnlyOneI(i)..
    sum(s, akt(i,s)) =l= 1;
At every i there can only be one or zero plants.

Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply