Inherits
Example.
List of all members.
Detailed Description
Example: Locating warehouses
A company needs to construct warehouses to supply stores with goods. Each warehouse possibly to be constructed has a certain capacity defining how many stores it can supply. Constructing a warehouse incurs a fixed cost. Costs for transportation from warehouses to stores depend on the locations of warehouses and stores.
Determine which warehouses should be constructed and which warehouse should supply which store such that overall cost (transportation cost plus construction cost) is smallest.
Definition at line 71 of file warehouses.cc.
Constructor & Destructor Documentation
Warehouses::Warehouses |
( |
const Options & |
opt |
) |
[inline] |
Warehouses::Warehouses |
( |
bool |
share, |
|
|
Warehouses & |
s | |
|
) |
| | [inline] |
Member Function Documentation
void Warehouses::constrain |
( |
Space * |
s |
) |
[inline] |
Add constraint for next better solution.
Definition at line 129 of file warehouses.cc.
virtual Space* Warehouses::copy |
( |
bool |
share |
) |
[inline, virtual] |
virtual void Warehouses::print |
( |
void |
|
) |
[inline, virtual] |
Member Data Documentation
Is a supplier open (warehouse needed).
Definition at line 76 of file warehouses.cc.
The documentation for this class was generated from the following file: