warehouses.cpp File Reference
(Revision: 14447)
#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. | |
const int | n_stores = 10 |
Number of stores. | |
const int | c_fixed = 30 |
Fixed cost for one warehouse. | |
const int | capacity [n_warehouses] |
Capacity of a single warehouse. | |
const int | c_supply [n_stores][n_warehouses] |
Cost for supply a store by a warehouse. |
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.