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 77 of file photo.cc.
Member Enumeration Documentation
Branching to use for model.
- Enumerator:
-
BRANCH_NONE |
Choose variables from left to right. |
BRANCH_DEGREE |
Choose variable with largest degree. |
Definition at line 88 of file photo.cc.
Constructor & Destructor Documentation
Actual model.
Definition at line 93 of file photo.cc.
Photo::Photo |
( |
bool |
share, |
|
|
Photo & |
s | |
|
) |
| | [inline] |
Constructor for cloning s.
Definition at line 123 of file photo.cc.
Member Function Documentation
virtual Space* Photo::copy |
( |
bool |
share |
) |
[inline, virtual] |
virtual void Photo::print |
( |
std::ostream & |
os |
) |
[inline, virtual] |
void Photo::constrain |
( |
Space * |
s |
) |
[inline] |
Add constraint for next better solution.
Definition at line 144 of file photo.cc.
Member Data Documentation
Person's position on photo.
Definition at line 82 of file photo.cc.
Number of satisfied preferences.
Definition at line 84 of file photo.cc.
The documentation for this class was generated from the following file: