Last change
on this file since 15414 was
15410,
checked in by gkronber, 7 years ago
|
#2796 worked on MCTS (removing constraint handling and introducing state unification instead)
|
File size:
816 bytes
|
Line | |
---|
1 |
|
---|
2 |
|
---|
3 | namespace HeuristicLab.Algorithms.DataAnalysis.MctsSymbolicRegression {
|
---|
4 | // no constraints
|
---|
5 | internal class EmptyConstraintHandler : IConstraintHandler {
|
---|
6 | public bool IsInvalidExpression {
|
---|
7 | get {
|
---|
8 | return false;
|
---|
9 | }
|
---|
10 | }
|
---|
11 |
|
---|
12 | public EmptyConstraintHandler() {
|
---|
13 | }
|
---|
14 |
|
---|
15 | public void AddVarToCurrentFactor(int state) {
|
---|
16 | }
|
---|
17 |
|
---|
18 | public void EndFactor() {
|
---|
19 | // ignore
|
---|
20 | }
|
---|
21 |
|
---|
22 | public void EndTerm() {
|
---|
23 | // ignore
|
---|
24 | }
|
---|
25 |
|
---|
26 | public bool IsAllowedFollowState(int currentState, int followState) {
|
---|
27 | return true;
|
---|
28 | }
|
---|
29 |
|
---|
30 | public void Reset() {
|
---|
31 | }
|
---|
32 |
|
---|
33 | public void StartFactor(int state) {
|
---|
34 | // ignore
|
---|
35 | }
|
---|
36 |
|
---|
37 | public void StartNewTermInPoly() {
|
---|
38 | // ignore
|
---|
39 | }
|
---|
40 |
|
---|
41 | public void StartTerm() {
|
---|
42 | // ignore
|
---|
43 | }
|
---|
44 | }
|
---|
45 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.