ECF 1.5
Problem.h
1#pragma once
2#include<ECF/ECF.h>
3
4
5//
6// base Move class
7//
8class Move
9{};
10typedef boost::shared_ptr<Move> MoveP;
11
12
13//
14// base Path class
15//
16class Path
17{};
18typedef boost::shared_ptr<Path> PathP;
19
20
21//
22// base Problem class
23//
24class Problem : public EvaluateOp
25{
26public:
27 virtual MoveP randomMove(IndividualP)
28 { return MoveP(); }
29 virtual bool applyMove(IndividualP&, MoveP)
30 { return false; }
31 virtual PathP initPathTo(IndividualP, IndividualP)
32 { return PathP(); }
33 virtual PathP initPathAwayFrom(IndividualP)
34 { return PathP(); }
35 virtual int getPathLength(PathP)
36 { return -1; }
37 virtual MoveP nextRandomMove(PathP)
38 { return MoveP(); }
39};
Evaluation base class.
Definition: EvaluateOp.h:17
Definition: Problem.h:9
Definition: Problem.h:17