EmergencyCentreAllocation : Mixed integer linear programming model for optimal allocation of Emergency Centres

Reference

  • Alireza Soroudi, Power System Optimization Modelling in GAMS, Model EmergencyCentreAllocation (Gcode2.5) in chapter Simple Examples in GAMS, 2017

Category : GAMS PSOPT library


Mainfile : EmergencyCentreAllocation.gms

$title Mixed integer linear programming model for optimal allocation of Emergency Centres

$onText
For more details please refer to Chapter 2 (Gcode2.5), of the following book:
Soroudi, Alireza. Power System Optimization Modeling in GAMS. Springer, 2017.
--------------------------------------------------------------------------------
Model type: MIP
--------------------------------------------------------------------------------
Contributed by
Dr. Alireza Soroudi
IEEE Senior Member
email: alireza.soroudi@gmail.com
We do request that publications derived from the use of the developed GAMS code
explicitly acknowledge that fact by citing
Soroudi, Alireza. Power System Optimization Modeling in GAMS. Springer, 2017.
DOI: doi.org/10.1007/978-3-319-62350-4
$offText

Binary Variable x1, x2, x3, x4, x5, x6;
Variable of;
Equation eq1, eq2, eq3, eq4, eq5, eq6, eq7;

eq1.. x1                    + x6  =g= 1;
eq2..      x2                     =g= 1;
eq3..           x3      + x5      =g= 1;
eq4..                x4 + x5      =g= 1;
eq5..           x3 + x4 + x5 + x6 =g= 1;
eq6.. x1                + x5 + x6 =g= 1;
eq7.. x1 + x2 + x3 + x4 + x5 + x6 =e= of;

Model emergency / all /;
solve emergency using mip minimizing of;