examples.Photo Class Reference
[Example scripts (models)]
Inherits org.gecode.Space.
Detailed Description
Script for 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 44 of file Photo.java.
Public Member Functions | |
| void | constrain (Space oldSol) |
| constrain this space to satisfy more preferences | |
| Photo (PhotoSpec s) | |
| Photo (Boolean share, Photo photo) | |
Static Public Member Functions | |
| static void | main (String[]args) |
Public Attributes | |
| VarArray< IntVar > | pos |
| pos.get(i) is the position of person i | |
| IntVar | sat |
| how many preferences are satisfied | |
Static Package Functions | |
| [static initializer] | |
Constructor & Destructor Documentation
| examples.Photo.Photo | ( | PhotoSpec | s | ) |
Definition at line 58 of file Photo.java.
| examples.Photo.Photo | ( | Boolean | share, | |
| Photo | photo | |||
| ) |
Definition at line 109 of file Photo.java.
Member Function Documentation
| void examples.Photo.constrain | ( | Space | oldSol | ) |
constrain this space to satisfy more preferences
Reimplemented from org.gecode.Space.
Definition at line 53 of file Photo.java.
| static void examples.Photo.main | ( | String[] | args | ) | [static] |
Definition at line 118 of file Photo.java.
| examples.Photo.[static initializer] | ( | ) | [static, package] |
Member Data Documentation
| VarArray<IntVar> examples.Photo.pos |
The documentation for this class was generated from the following file:
- examples/Photo.java (Revision: 3843)
