Generated on Sat Feb 7 2015 02:01:33 for Gecode by doxygen 1.8.9.1
warehouses.cpp File Reference

(Revision: 13820)

#include <gecode/driver.hh>
#include <gecode/int.hh>
#include <gecode/minimodel.hh>

Go to the source code of this file.

Classes

class  Warehouses
 Example: Locating warehouses More...
 

Variables

const int n_warehouses = 5
 Number of warehouses. More...
 
const int n_stores = 10
 Number of stores. More...
 
const int c_fixed = 30
 Fixed cost for one warehouse. More...
 
const int capacity [n_warehouses]
 Capacity of a single warehouse. More...
 
const int c_supply [n_stores][n_warehouses]
 Cost for supply a store by a warehouse. More...
 

Variable Documentation

const int n_warehouses = 5

Number of warehouses.

Definition at line 45 of file warehouses.cpp.

const int n_stores = 10

Number of stores.

Definition at line 47 of file warehouses.cpp.

const int c_fixed = 30

Fixed cost for one warehouse.

Definition at line 50 of file warehouses.cpp.

const int capacity[n_warehouses]
Initial value:
= {
1, 4, 2, 1, 3
}

Capacity of a single warehouse.

Definition at line 53 of file warehouses.cpp.

const int c_supply[n_stores][n_warehouses]
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 supply a store by a warehouse.

Definition at line 58 of file warehouses.cpp.