
Example: open-shop scheduling More...
Classes | |
| class | PrintTask |
| Helper class for representing tasks when printing a solution. More... | |
| class | Task |
| Task representation for CROSH heuristic More... | |
Public Member Functions | |
| OpenShop (const SizeOptions &opt) | |
| The actual problem. More... | |
| OpenShop (bool share, OpenShop &s) | |
| Constructor for cloning s. More... | |
| virtual Space * | copy (bool share) |
| Perform copying during cloning. More... | |
| virtual IntVar | cost (void) const |
| Minimize the makespan. More... | |
| virtual void | print (std::ostream &os) const |
| Print solution. More... | |
Public Member Functions inherited from Gecode::Driver::ScriptBase< BaseSpace > | |
| ScriptBase (const Options &opt) | |
| Constructor. More... | |
| ScriptBase (bool share, ScriptBase &e) | |
| Constructor used for cloning. More... | |
| virtual void | compare (const Space &home, std::ostream &os) const |
| Compare with s. More... | |
Protected Member Functions | |
| void | crosh (Matrix< IntArgs > &dur, int &minmakespan, int &maxmakespan) |
| Use Constructive Randomized Open-Shop Heuristics to compute lower and upper bounds. More... | |
Protected Attributes | |
| const OpenShopSpec & | spec |
| The instance specification. More... | |
| BoolVarArray | b |
| Precedences. More... | |
| IntVar | makespan |
| Makespan. More... | |
| IntVarArray | _start |
| Start times. More... | |
Related Functions | |
(Note that these are not member functions.) | |
| int | main (int argc, char *argv[]) |
| Main-function. More... | |
Open shop specifications | |
Each specification gives the processing times of the tasks for each job, as well as the number of jobs and machines. | |
| const int | ex0_p [] |
| The instances. More... | |
| const int | ex1_p [] |
| The instances. More... | |
| const int | ex2_p [] |
| The instances. More... | |
| const int | ex3_p [] |
| The instances. More... | |
| const int | ex4_p [] |
| The instances. More... | |
| OpenShopSpec | examples [] = { ex0, ex1, ex2, ex3, ex4 } |
| The instances. More... | |
| const unsigned int | n_examples = sizeof(examples) / sizeof(OpenShopSpec) |
| The number of instances. More... | |
| OpenShopSpec | ex0 (3, 3, ex0_p) |
| The instances. More... | |
| OpenShopSpec | ex1 (4, 4, ex1_p) |
| The instances. More... | |
| OpenShopSpec | ex2 (4, 4, ex2_p) |
| The instances. More... | |
| OpenShopSpec | ex3 (7, 7, ex3_p) |
| The instances. More... | |
| OpenShopSpec | ex4 (20, 20, ex4_p) |
| The instances. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Gecode::Driver::ScriptBase< BaseSpace > | |
| static std::ostream & | select_ostream (const char *name, std::ofstream &ofs) |
| Choose output stream according to name. More... | |
| template<class Script , template< class > class Engine, class Options > | |
| static void | run (const Options &opt, Script *s=NULL) |
Example: open-shop scheduling
Definition at line 68 of file open-shop.cpp.
|
inline |
The actual problem.
Definition at line 196 of file open-shop.cpp.
|
inline |
Constructor for cloning s.
Definition at line 250 of file open-shop.cpp.
|
inlineprotected |
Use Constructive Randomized Open-Shop Heuristics to compute lower and upper bounds.
This heuristic is taken from the paper A. Malapert, H. Cambazard, C. Gueret, N. Jussien, A. Langevin, L.-M. Rousseau: An Optimal Constraint Programming Approach to the Open-Shop Problem. Technical report, CIRRELT-2009-25.
Definition at line 100 of file open-shop.cpp.
|
inlinevirtual |
Perform copying during cloning.
Definition at line 258 of file open-shop.cpp.
|
inlinevirtual |
Minimize the makespan.
Definition at line 264 of file open-shop.cpp.
|
inlinevirtual |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
Definition at line 282 of file open-shop.cpp.
|
related |
The instances.
Definition at line 334 of file open-shop.cpp.
|
related |
The instances.
Definition at line 341 of file open-shop.cpp.
|
related |
The instances.
Definition at line 349 of file open-shop.cpp.
|
related |
The instances.
Definition at line 357 of file open-shop.cpp.
|
related |
The instances.
Definition at line 368 of file open-shop.cpp.
The instances.
Definition at line 393 of file open-shop.cpp.
|
related |
The number of instances.
Definition at line 395 of file open-shop.cpp.
|
related |
Main-function.
Definition at line 308 of file open-shop.cpp.
|
related |
The instances.
|
related |
The instances.
|
related |
The instances.
|
related |
The instances.
|
related |
The instances.
|
protected |
The instance specification.
Definition at line 71 of file open-shop.cpp.
|
protected |
Precedences.
Definition at line 73 of file open-shop.cpp.
|
protected |
Makespan.
Definition at line 75 of file open-shop.cpp.
|
protected |
Start times.
Definition at line 77 of file open-shop.cpp.