ILOG CPLEX 11.0 User's Manual > Discrete Optimization > Solution Pool: Generating and Keeping Multiple Solutions > Example: Simple Facility Location Problem |
Example: Simple Facility Location Problem |
INDEX PREVIOUS NEXT |
A simple version of a facility location problem appears throughout this chapter to show how the solution pool and the tools associated with it work. A company is considering opening as many as four warehouses in order to serve nine different regions. The goal is to minimize the sum of fixed costs associated with opening warehouses (constraint c2
) as well as the various transportation costs incurred to ship goods from the warehouses to the regions (constraint c3
).
Whether or not to open a warehouse is represented by binary variable xi
, for i
=1 to 4.
Whether or not to ship goods from warehouse i
to region j
is represented by binary variable yji
, for j
=1 to 9 and i
=1 to 4.
Each region needs a specified amount of goods, and each warehouse can store only a limited quantity of goods (constraints c4
to c7
). In addition, each region must be served by exactly one warehouse (constraints c8
to c16
). Constraints c17
to c52
complete the model by stating that warehouse i
must be open in order for goods to be shipped from warehouse i
to any region j
.
The model for this simple facility location problem is available online in the formatted LP file yourCPLEXdir/examples/data/location.lp
. In standard form, a model for the simple facility location problem looks like this:
Copyright © 1987-2007 ILOG S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |