Generated on Sat Feb 7 2015 02:01:38 for Gecode by doxygen 1.8.9.1
Crew Class Reference

Example: Airline crew allocation More...

Public Member Functions

 Crew (const Options &)
 The actual model. More...
 
virtual void print (std::ostream &os) const
 Print solution. More...
 
 Crew (bool share, Crew &s)
 Constructor for cloning s. More...
 
virtual Spacecopy (bool share)
 Copy during cloning. More...
 
- Public Member Functions inherited from Gecode::Driver::ScriptBase< BaseSpace >
 ScriptBase (void)
 Default constructor. More...
 
 ScriptBase (bool share, ScriptBase &e)
 Constructor used for cloning. More...
 
virtual void compare (const Space &, std::ostream &os) const
 Compare with s. More...
 

Public Attributes

SetVarArray flight
 The crew for each flight. More...
 

Related Functions

(Note that these are not member functions.)

int main (int argc, char *argv[])
 Main-function. 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)
 

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 94 of file crew.cpp.

Constructor & Destructor Documentation

Crew::Crew ( const Options )
inline

The actual model.

Definition at line 100 of file crew.cpp.

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

Constructor for cloning s.

Definition at line 169 of file crew.cpp.

Member Function Documentation

virtual void Crew::print ( std::ostream &  os) const
inlinevirtual

Print solution.

Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.

Definition at line 138 of file crew.cpp.

virtual Space* Crew::copy ( bool  share)
inlinevirtual

Copy during cloning.

Definition at line 175 of file crew.cpp.

Friends And Related Function Documentation

int main ( int  argc,
char *  argv[] 
)
related

Main-function.

Definition at line 185 of file crew.cpp.

Member Data Documentation

SetVarArray Crew::flight

The crew for each flight.

Definition at line 97 of file crew.cpp.


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