New style for MO
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@787 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
47298125ec
commit
7161febf9c
80 changed files with 2014 additions and 2038 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* <moMoveSelect.h>
|
||||
* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007
|
||||
* (C) OPAC Team, LIFL, 2002-2007
|
||||
|
|
@ -44,47 +44,45 @@
|
|||
This class is used as an exception that can be thrown if a solution selector has completly failed.
|
||||
*/
|
||||
class EmptySelection
|
||||
{
|
||||
|
||||
};
|
||||
{};
|
||||
|
||||
//! Class that describes a move selector (moMove).
|
||||
/*!
|
||||
/*!
|
||||
It iteratively considers some moves (moMove) and their
|
||||
associated fitnesses. The best move is so regularly updated.
|
||||
At any time, it could be accessed.
|
||||
*/
|
||||
template < class M > class moMoveSelect:public eoBF < M &, typename M::EOType::Fitness &,
|
||||
void >
|
||||
{
|
||||
public:
|
||||
//! Alias for the fitness
|
||||
typedef
|
||||
void >
|
||||
{
|
||||
public:
|
||||
//! Alias for the fitness
|
||||
typedef
|
||||
typename
|
||||
M::EOType::Fitness
|
||||
Fitness;
|
||||
|
||||
//! Procedure which initialises all that the move selector needs including the initial fitness.
|
||||
/*!
|
||||
In order to know the fitness of the solution,
|
||||
for which the neighborhood will
|
||||
be soon explored
|
||||
//! Procedure which initialises all that the move selector needs including the initial fitness.
|
||||
/*!
|
||||
In order to know the fitness of the solution,
|
||||
for which the neighborhood will
|
||||
be soon explored
|
||||
|
||||
\param __fit the current fitness.
|
||||
*/
|
||||
virtual void
|
||||
init (const Fitness & __fit) = 0;
|
||||
\param __fit the current fitness.
|
||||
*/
|
||||
virtual void
|
||||
init (const Fitness & __fit) = 0;
|
||||
|
||||
//! Function which updates the best solutions.
|
||||
/*!
|
||||
\param __move a new move.
|
||||
\param __fit a fitness linked to the new move.
|
||||
\return a boolean that expresses the need to resume the exploration.
|
||||
*/
|
||||
virtual
|
||||
//! Function which updates the best solutions.
|
||||
/*!
|
||||
\param __move a new move.
|
||||
\param __fit a fitness linked to the new move.
|
||||
\return a boolean that expresses the need to resume the exploration.
|
||||
*/
|
||||
virtual
|
||||
bool
|
||||
update (const M & __move, const Fitness & __fit) = 0;
|
||||
update (const M & __move, const Fitness & __fit) = 0;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue