Generated on Mon Aug 25 11:35:48 2008 for Gecode by doxygen 1.5.6

Crew Class Reference
[Scripts for problems]

Inherits Example.

List of all members.


Detailed Description

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.

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 Spacecopy (bool share)
 Copy during cloning.

Public Attributes

SetVarArray flight
 The crew for each flight.

Constructor & Destructor Documentation

Crew::Crew ( const Options  )  [inline]

The actual model.

Definition at line 97 of file crew.cc.

Crew::Crew ( bool  share,
Crew s 
) [inline]

Constructor for cloning s.

Definition at line 186 of file crew.cc.


Member Function Documentation

virtual void Crew::print ( std::ostream &  os  )  [inline, virtual]

Print solution.

Reimplemented from Example.

Definition at line 155 of file crew.cc.

virtual Space* Crew::copy ( bool  share  )  [inline, virtual]

Copy during cloning.

Implements Gecode::Space.

Definition at line 192 of file crew.cc.


Member Data Documentation

The crew for each flight.

Definition at line 94 of file crew.cc.


The documentation for this class was generated from the following file: