moILSexplorer accept template with two arguments
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2314 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
225c931d6e
commit
eabc158fba
1 changed files with 61 additions and 63 deletions
|
|
@ -41,7 +41,6 @@ Contact: paradiseo-help@lists.gforge.inria.fr
|
||||||
#include <perturb/moMonOpPerturb.h>
|
#include <perturb/moMonOpPerturb.h>
|
||||||
#include <acceptCrit/moAlwaysAcceptCrit.h>
|
#include <acceptCrit/moAlwaysAcceptCrit.h>
|
||||||
|
|
||||||
|
|
||||||
class dummyMonOp: public eoMonOp<bitVector> {
|
class dummyMonOp: public eoMonOp<bitVector> {
|
||||||
|
|
||||||
bool operator()(bitVector& _sol) {
|
bool operator()(bitVector& _sol) {
|
||||||
|
|
@ -69,7 +68,7 @@ int main() {
|
||||||
|
|
||||||
moAlwaysAcceptCrit<bitNeighbor> accept;
|
moAlwaysAcceptCrit<bitNeighbor> accept;
|
||||||
|
|
||||||
moILSexplorer<bitNeighbor> test(ls, perturb, accept);
|
moILSexplorer<bitNeighbor, bitNeighbor> test(ls, perturb, accept);
|
||||||
|
|
||||||
assert(test.className() == "moILSexplorer");
|
assert(test.className() == "moILSexplorer");
|
||||||
assert(test.isContinue(sol));
|
assert(test.isContinue(sol));
|
||||||
|
|
@ -92,7 +91,6 @@ int main() {
|
||||||
|
|
||||||
test(sol);
|
test(sol);
|
||||||
|
|
||||||
|
|
||||||
std::cout << "[t-moILSexplorer] => OK" << std::endl;
|
std::cout << "[t-moILSexplorer] => OK" << std::endl;
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue