
Model with cost defined as sum. More...
Public Member Functions | |
| SumCostWarehouses (const Options &opt) | |
| Actual model. | |
| virtual IntVar | cost (void) const |
| Return solution cost. | |
| SumCostWarehouses (SumCostWarehouses &s) | |
| Constructor for cloning s. | |
| virtual Space * | copy (void) |
| Copy during cloning. | |
| virtual void | print (std::ostream &os) const |
| Print solution. | |
Public Member Functions inherited from Warehouses< IntMinimizeScript > | |
| Warehouses (const Options &opt) | |
| Actual model. | |
| Warehouses (Warehouses &s) | |
| Constructor for cloning s. | |
Public Member Functions inherited from Gecode::Driver::ScriptBase< Driver::IgnoreStepOption< IntMinimizeSpace > > | |
| ScriptBase (const Options &opt) | |
| Constructor. | |
| ScriptBase (ScriptBase &e) | |
| Constructor used for cloning. | |
| virtual void | compare (const Space &home, std::ostream &os) const |
| Compare with s. | |
| ScriptBase (const Options &opt) | |
| Constructor. | |
| ScriptBase (ScriptBase &e) | |
| Constructor used for cloning. | |
| virtual void | compare (const Space &home, std::ostream &os) const |
| Compare with s. | |
Public Member Functions inherited from Gecode::Driver::IgnoreStepOption< BaseSpace > | |
| IgnoreStepOption (const Options &) | |
| Constructor. | |
| IgnoreStepOption (BaseSpace &e) | |
| Constructor used for cloning. | |
Protected Attributes | |
| IntVar | c_total |
| Total cost. | |
Protected Attributes inherited from Warehouses< IntMinimizeScript > | |
| IntVarArray | supplier |
| Which warehouse supplies a store. | |
| BoolVarArray | open |
| Is a warehouse open (warehouse needed) | |
| IntVarArray | c_store |
| Cost of a store. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Gecode::Driver::ScriptBase< Driver::IgnoreStepOption< IntMinimizeSpace > > | |
| static std::ostream & | select_ostream (const char *sn, std::ofstream &ofs) |
| Choose output stream according to sn. | |
| static void | run (const Options &opt, Script *s=NULL) |
| static std::ostream & | select_ostream (const char *sn, std::ofstream &ofs) |
| Choose output stream according to sn. | |
| static void | run (const Options &opt, Script *s=NULL) |
Related Symbols inherited from Warehouses< IntMinimizeScript > | |
| int | main (int argc, char *argv[]) |
| Main-function. | |
| int | main (int argc, char *argv[]) |
| Main-function. | |
Model with cost defined as sum.
Definition at line 149 of file warehouses.cpp.
|
inline |
Actual model.
Definition at line 155 of file warehouses.cpp.
|
inline |
Constructor for cloning s.
Definition at line 165 of file warehouses.cpp.
|
inlinevirtual |
Return solution cost.
Definition at line 161 of file warehouses.cpp.
|
inlinevirtual |
Copy during cloning.
Definition at line 169 of file warehouses.cpp.
|
inlinevirtual |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< Driver::IgnoreStepOption< IntMinimizeSpace > >.
Definition at line 174 of file warehouses.cpp.
|
protected |
Total cost.
Definition at line 152 of file warehouses.cpp.