METSlib 0.6

- Main Page
- Modules
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Protected Attributes | List of all members
mets::invert_subsequence Class Reference
Model

A mets::mana_move that swaps a subsequence of elements in a mets::permutation_problem. More...

`#include <model.hh>`

Inheritance diagram for mets::invert_subsequence:
Collaboration diagram for mets::invert_subsequence:

## Public Member Functions
| invert_subsequence (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
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 tabu list.
void | change (int from, int to)
Public Member Functions inherited from mets::mana_move
virtual mana_move * | opposite_of () const
| Create and return a new move that is the reverse of this one. More...

## Protected Attributes
int | p1
| the first element to swap
int | p2
| the second element to swap

## Detailed Description

A mets::mana_move that swaps a subsequence of elements in a mets::permutation_problem.

See Also
  mets::permutation_problem, mets::mana_move

The documentation for this class was generated from the following file:

- metslib/model.hh

Return to METSlib home page