Crew Class Reference
[Scripts for problems]
Inherits Example.
Detailed Description
Example: Airline crew allocationAssign 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.
Definition at line 91 of file crew.cc.
Public Member Functions | |
Crew (const Options &) | |
The actual model. | |
virtual void | print (std::ostream &os) |
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. |
Constructor & Destructor Documentation
Crew::Crew | ( | bool | share, | |
Crew & | s | |||
) | [inline] |
Member Function Documentation
virtual void Crew::print | ( | std::ostream & | os | ) | [inline, virtual] |
virtual Space* Crew::copy | ( | bool | share | ) | [inline, virtual] |
Member Data Documentation
The documentation for this class was generated from the following file:
- examples/crew.cc (Revision: 5815)