Example: Airline crew allocation More...
Public Member Functions | |
Crew (const Options &opt) | |
The actual model. | |
virtual void | print (std::ostream &os) const |
Print solution. | |
Crew (Crew &s) | |
Constructor for cloning s. | |
virtual Space * | copy (void) |
Copy during cloning. | |
![]() | |
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 Attributes | |
SetVarArray | flight |
The crew for each flight. | |
Related Symbols | |
(Note that these are not member symbols.) | |
int | main (int argc, char *argv[]) |
Main-function. | |
Additional Inherited Members | |
![]() | |
static std::ostream & | select_ostream (const char *sn, std::ofstream &ofs) |
Choose output stream according to sn. | |
template<class Script , template< class > class Engine, class Options > | |
static void | run (const Options &opt, Script *s=NULL) |
Example: Airline crew allocation
Assign 20 flight attendants to 10 flights. Each flight needs a certain number of cabin crew, and they have to speak certain languages. Every cabin crew member has two flights off after an attended flight.
|
inlinevirtual |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
|
inlinevirtual |
|
related |
SetVarArray Crew::flight |