Example: Placing people on a photo
More...
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 violates as few preferences as possible.
Definition at line 81 of file photo.cpp.
Member Enumeration Documentation
Branching to use for model.
- Enumerator:
BRANCH_NONE |
Choose variables from left to right.
|
BRANCH_DEGREE |
Choose variable with largest degree.
|
BRANCH_AFC_SIZE |
Choose variable with largest afc over size.
|
Definition at line 95 of file photo.cpp.
Constructor & Destructor Documentation
Photo::Photo |
( |
bool |
share, |
|
|
Photo & |
s | |
|
) |
| | [inline] |
Constructor for cloning s.
Definition at line 147 of file photo.cpp.
Member Function Documentation
bool Photo::slave |
( |
const MetaInfo & |
mi |
) |
[inline] |
Slave function for restarts.
Definition at line 136 of file photo.cpp.
virtual Space* Photo::copy |
( |
bool |
share |
) |
[inline, virtual] |
Copy during cloning.
Definition at line 154 of file photo.cpp.
virtual void Photo::print |
( |
std::ostream & |
os |
) |
const [inline, virtual] |
virtual IntVar Photo::cost |
( |
void |
|
) |
const [inline, virtual] |
Return solution cost.
Definition at line 164 of file photo.cpp.
Member Data Documentation
Person's position on photo.
Definition at line 86 of file photo.cpp.
Number of violated preferences.
Definition at line 88 of file photo.cpp.
Random number generator for LNS.
Definition at line 90 of file photo.cpp.
Relaxation probability.
Definition at line 92 of file photo.cpp.
The documentation for this class was generated from the following file: