| Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||

Public Member Functions | |
| SwapSymbols (const IntVar *const *card_symbol_vars, int num_vars, int num_cards, int num_symbols, int num_symbols_per_card) | |
| virtual | ~SwapSymbols () |
| virtual bool | MakeOneNeighbor () |
| Finds the next swap, returns false when it has finished. | |
This operator explores *all* pairs (card1, some symbol on card1), (card2, some symbol on card2) and swaps the symbols between the two cards.
Note that this could create invalid moves (for example, by adding a symbol to a card that already had it); see the DobbleFilter class below to see how we filter those out.
Definition at line 309 of file dobble_ls.cc.
| operations_research::SwapSymbols::SwapSymbols | ( | const IntVar *const * | card_symbol_vars, | |
| int | num_vars, | |||
| int | num_cards, | |||
| int | num_symbols, | |||
| int | num_symbols_per_card | |||
| ) | [inline] |
Definition at line 311 of file dobble_ls.cc.
| virtual operations_research::SwapSymbols::~SwapSymbols | ( | ) | [inline, virtual] |
Definition at line 327 of file dobble_ls.cc.
| virtual bool operations_research::SwapSymbols::MakeOneNeighbor | ( | ) | [inline, virtual] |
Finds the next swap, returns false when it has finished.
Definition at line 330 of file dobble_ls.cc.