Inherits
Example.
List of all members.
Detailed Description
Example: Placing people on a photo
A group of people wants to take a group photo. Each person can give preferences next to whom he or she wants to be placed on the photo. The problem to be solved is to find a placement that satisfies as many preferences as possible.
Definition at line 61 of file photo.cc.
Constructor & Destructor Documentation
Photo::Photo |
( |
const Options & |
opt |
) |
[inline] |
Actual model.
Definition at line 72 of file photo.cc.
Photo::Photo |
( |
bool |
share, |
|
|
Photo & |
s | |
|
) |
| | [inline] |
Constructor for cloning s.
Definition at line 109 of file photo.cc.
Member Function Documentation
virtual Space* Photo::copy |
( |
bool |
share |
) |
[inline, virtual] |
virtual void Photo::print |
( |
void |
|
) |
[inline, virtual] |
void Photo::constrain |
( |
Space * |
s |
) |
[inline] |
Add constraint for next better solution.
Definition at line 132 of file photo.cc.
Member Data Documentation
Person's position on photo.
Definition at line 66 of file photo.cc.
Number of satisfied preferences.
Definition at line 68 of file photo.cc.
The documentation for this class was generated from the following file: