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 |
const int n_stores = 10 |
const int building_cost = 30 |
const int capacity[n_suppliers] |
Initial value:
{ 1, 4, 2, 1, 3 }
Definition at line 50 of file warehouses.cc.
const int cost_matrix[n_stores][n_suppliers] |
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} }
Definition at line 55 of file warehouses.cc.