Example: Airline crew allocation More...
Public Member Functions | |
Crew (const Options &) | |
The actual model. | |
virtual void | print (std::ostream &os) const |
Print solution. | |
Crew (bool share, Crew &s) | |
Constructor for cloning s. | |
virtual Space * | copy (bool share) |
Copy during cloning. | |
Public Attributes | |
SetVarArray | flight |
The crew for each flight. | |
Related Functions | |
(Note that these are not member functions.) | |
int | main (int argc, char *argv[]) |
Main-function. |
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.
Crew::Crew | ( | const Options & | ) | [inline] |
Crew::Crew | ( | bool | share, |
Crew & | s | ||
) | [inline] |
virtual void Crew::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
virtual Space* Crew::copy | ( | bool | share | ) | [inline, virtual] |
int main | ( | int | argc, |
char * | argv[] | ||
) | [related] |