12.07.2015 Views

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

transportation costs incurred to ship goods from the warehouses to the regions (constraintc3).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 variableyji, 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 limitedquantity of goods (constraints c4 to c7). In addition, each region must be served by exactlyone warehouse (constraints c8 to c16). Constraints c17 to c52 complete the model bystating that warehouse i must be open in order for goods to be shipped from warehouse i toany region j.The model for this simple facility location problem is available online in the formatted LPfile your<strong>CPLEX</strong>dir/examples/data/location.lp. In standard form, a model for thesimple facility location problem looks like this:Minimizeobj: costSubject Toc1: - cost + fixed + transport = 0c2: - fixed + 130 x1 + 150 x2 + 170 x3 + 180 x4 = 0c3: - transport+ 10 y11 + 30 y12 + 25 y13 + 55 y14+ 10 y21 + 25 y22 + 25 y23 + 45 y24+ 20 y31 + 23 y32 + 30 y33 + 40 y34+ 25 y41 + 10 y42 + 26 y43 + 40 y44+ 28 y51 + 12 y52 + 20 y53 + 29 y54+ 36 y61 + 19 y62 + 16 y63 + 22 y64+ 40 y71 + 39 y72 + 22 y73 + 27 y74+ 75 y81 + 65 y82 + 55 y83 + 35 y84+ 34 y91 + 43 y92 + 41 y93 + 62 y94 = 0c4: 10 y11 + 10 y21 + 12 y31 + 15 y41 + 15 y51 + 15 y61 + 20 y71 + 25 y81 +30 y91 - 90 x1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!