Generated on Mon Aug 25 11:35:45 2008 for Gecode by doxygen 1.5.6

warehouses.cc File Reference

(Revision: 6102)

#include "examples/support.hh"
#include "gecode/minimodel.hh"

Go to the source code of this file.

Classes

class  Warehouses
 Example: Locating warehouses More...

Variables

const int n_suppliers = 5
 Number of warehouses.
const int n_stores = 10
 Number of stores.
const int building_cost = 30
 Cost of building one warehouse.
const int capacity [n_suppliers]
 Capacity of a single warehouse.
const int cost_matrix [n_stores][n_suppliers]
 Cost for store to warehouse.


Variable Documentation

const int n_suppliers = 5

Number of warehouses.

Definition at line 42 of file warehouses.cc.

const int n_stores = 10

Number of stores.

Definition at line 44 of file warehouses.cc.

const int building_cost = 30

Cost of building one warehouse.

Definition at line 47 of file warehouses.cc.

const int capacity[n_suppliers]

Initial value:

 {
  1, 4, 2, 1, 3
}
Capacity of a single warehouse.

Definition at line 50 of file warehouses.cc.

Initial value:

 {
  {20, 24, 11, 25, 30},
  {28, 27, 82, 83, 74},
  {74, 97, 71, 96, 70},
  { 2, 55, 73, 69, 61},
  {46, 96, 59, 83,  4},
  {42, 22, 29, 67, 59},
  { 1,  5, 73, 59, 56},
  {10, 73, 13, 43, 96},
  {93, 35, 63, 85, 46},
  {47, 65, 55, 71, 95}
}
Cost for store to warehouse.

Definition at line 55 of file warehouses.cc.