#include <model.hh>
Inheritance diagram for mets::swap_elements:


Each instance swaps two specific objects.
Public Member Functions | |
| swap_elements (int from, int to) | |
| A move that swaps from and to. | |
| gol_type | evaluate (const mets::feasible_solution &s) const |
| Virtual method that applies the move on a point. | |
| void | apply (mets::feasible_solution &s) const |
| Virtual method that applies the move on a point. | |
| clonable * | clone () const |
| Clones this move (so that the tabu list can store it). | |
| size_t | hash () const |
| An hash function used by the tabu list (the hash value is used to insert the move in an hash set). | |
| bool | operator== (const mets::mana_move &o) const |
| Comparison operator used to tell if this move is equal to a move in the simple tabu list move set. | |
| void | change (int from, int to) |
| Modify this swap move. | |
Protected Attributes | |
| int | p1 |
| the first element to swap | |
| int | p2 |
| the second element to swap | |
Friends | |
| class | swap_neighborhood |
Return to METSlib home page