ECF 1.5
Solver.h
1#pragma once
2#include "ECF/Algorithm.h"
3#include "Problem.h"
4
5//
6// base Solver class
7//
8class Solver : public Algorithm
9{
10public:
11 // access the user registered Problem class instance
12 Problem* getProblem()
13 {
14 return ((Problem*) state_->getEvalOp().get());
15 }
16
17 // methods for checking the Problem provides API methods
18 bool checkInitPathTo(IndividualP ind1, IndividualP ind2)
19 {
20 return ((Problem*) state_->getEvalOp().get())->initPathTo(ind1, ind2);
21 }
22 bool checkInitPathAwayFrom(IndividualP ind)
23 {
24 return ((Problem*) state_->getEvalOp().get())->initPathAwayFrom(ind);
25 }
26 bool checkNextRandomMove(PathP path)
27 {
28 return ((Problem*) state_->getEvalOp().get())->nextRandomMove(path);
29 }
30};
Algorithm base class.
Definition: Algorithm.h:20
Definition: Solver.h:9