Template Fitness dans les Neighbor enlevés. On le déduit de EOT.
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1734 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
b453cef86f
commit
67a701f9ff
17 changed files with 51 additions and 56 deletions
|
|
@ -35,21 +35,21 @@ Contact: paradiseo-help@lists.gforge.inria.fr
|
|||
/**
|
||||
* A variable Neighborhood Search (VNS) in the forward manner
|
||||
*/
|
||||
template< class EOT, class Fitness >
|
||||
class moForwardVariableNeighborhood : public moVariableNeighborhood<EOT, Fitness>
|
||||
template< class EOT >
|
||||
class moForwardVariableNeighborhood : public moVariableNeighborhood<EOT>
|
||||
{
|
||||
public:
|
||||
|
||||
typedef moNeighbor<EOT, Fitness> Neighbor;
|
||||
typedef moNeighbor<EOT> Neighbor;
|
||||
|
||||
using moVariableNeighborhood<EOT, Fitness>::currentNH;
|
||||
using moVariableNeighborhood<EOT, Fitness>::neighborhoodVector;
|
||||
using moVariableNeighborhood<EOT>::currentNH;
|
||||
using moVariableNeighborhood<EOT>::neighborhoodVector;
|
||||
|
||||
/**
|
||||
* Construction of at least one neighborhood
|
||||
* @param _firstNH first neighborhood in the vector
|
||||
*/
|
||||
moForwardVariableNeighborhood(moNeighborhood<Neighbor>& _firstNH) : moVariableNeighborhood<EOT, Fitness>(_firstNH) { }
|
||||
moForwardVariableNeighborhood(moNeighborhood<Neighbor>& _firstNH) : moVariableNeighborhood<EOT>(_firstNH) { }
|
||||
|
||||
/**
|
||||
* Return the class id.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue