diff --git a/trunk/paradiseo-mo/src/neighborhood/moBackwardVectorVNSelection.h b/trunk/paradiseo-mo/src/neighborhood/moBackwardVectorVNSelection.h index 52d52e925..a62085493 100644 --- a/trunk/paradiseo-mo/src/neighborhood/moBackwardVectorVNSelection.h +++ b/trunk/paradiseo-mo/src/neighborhood/moBackwardVectorVNSelection.h @@ -64,8 +64,8 @@ public: */ virtual void init(EOT& _solution, eoMonOp& _shake, eoMonOp& _ls){ current=LSvector.size()-1; - _ls=LSvector[current]; - _shake = shakeVector[current]; + _ls= *(LSvector[current]); + _shake = *(shakeVector[current]); } /** @@ -73,8 +73,8 @@ public: */ virtual void next(EOT& _solution, eoMonOp& _shake, eoMonOp& _ls){ current= (current + LSvector.size() -1) % LSvector.size(); - _ls=LSvector[current]; - _shake = shakeVector[current]; + _ls= *(LSvector[current]); + _shake = *(shakeVector[current]); } private: diff --git a/trunk/paradiseo-mo/src/neighborhood/moForwardVectorVNSelection.h b/trunk/paradiseo-mo/src/neighborhood/moForwardVectorVNSelection.h index 5f9e4703a..ea897240f 100644 --- a/trunk/paradiseo-mo/src/neighborhood/moForwardVectorVNSelection.h +++ b/trunk/paradiseo-mo/src/neighborhood/moForwardVectorVNSelection.h @@ -64,8 +64,8 @@ public: */ virtual void init(EOT& _solution, eoMonOp& _shake, eoMonOp& _ls){ current=0; - _ls = LSvector[current]; - _shake = shakeVector[current]; + _ls = *(LSvector[current]); + _shake = *(shakeVector[current]); } /** @@ -73,8 +73,8 @@ public: */ virtual void next(EOT& _solution, eoMonOp& _shake, eoMonOp& _ls){ current = (current+1) % LSvector.size(); - _ls = LSvector[current]; - _shake = shakeVector[current]; + _ls = *(LSvector[current]); + _shake = *(shakeVector[current]); } private: diff --git a/trunk/paradiseo-mo/src/neighborhood/moRndVectorVNSelection.h b/trunk/paradiseo-mo/src/neighborhood/moRndVectorVNSelection.h index 247eaa725..e375a6efa 100644 --- a/trunk/paradiseo-mo/src/neighborhood/moRndVectorVNSelection.h +++ b/trunk/paradiseo-mo/src/neighborhood/moRndVectorVNSelection.h @@ -69,11 +69,11 @@ public: if(order.size()==0){ for(unsigned int i=0; i& _shake, eoMonOp& _ls){ current= (current+1) % LSvector.size(); - _ls=LSvector[order[current]]; - _shake=shakeVector[order[current]]; + _ls=*(LSvector[order[current]]); + _shake=*(shakeVector[order[current]]); } private: