Changeset 15403 for branches/MCTS-SymbReg-2796/HeuristicLab.Algorithms.DataAnalysis/3.4/MctsSymbolicRegression/Automaton.cs
- Timestamp:
- 10/04/17 22:00:52 (7 years ago)
- Location:
- branches/MCTS-SymbReg-2796
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/MCTS-SymbReg-2796
-
Property
svn:ignore
set to
TestResults
-
Property
svn:ignore
set to
-
branches/MCTS-SymbReg-2796/HeuristicLab.Algorithms.DataAnalysis/3.4/MctsSymbolicRegression/Automaton.cs
r14185 r15403 96 96 } 97 97 98 // reverse notation ops99 // Expr -> c 0 Term { '+' Term } '+' '*' c'+' 'exit'98 // reverse notation 99 // Expr -> 0 Term { '+' Term } '+' 'exit' 100 100 // Term -> c Fact { '*' Fact } '*' 101 101 // Fact -> VarFact | ExpFact | LogFact | InvFact … … 120 120 actionStrings = new List<string>[nStates, nStates]; 121 121 122 // Expr -> c 0 Term { '+' Term } '+' '*' c'+' 'exit'122 // Expr -> 0 Term { '+' Term } '+' 'exit' 123 123 AddTransition(StateExpr, StateTermStart, () => { 124 124 codeGenerator.Reset(); 125 codeGenerator.Emit1(OpCodes.LoadParamN);126 125 codeGenerator.Emit1(OpCodes.LoadConst0); 127 126 constraintHandler.Reset(); 128 }, " c0, Reset");127 }, "0, Reset"); 129 128 AddTransition(StateTermEnd, StateExprEnd, () => { 130 129 codeGenerator.Emit1(OpCodes.Add); 131 codeGenerator.Emit1(OpCodes.Mul);132 codeGenerator.Emit1(OpCodes.LoadParamN);133 codeGenerator.Emit1(OpCodes.Add);134 130 codeGenerator.Emit1(OpCodes.Exit); 135 }, "+ *c+exit");131 }, "+ exit"); 136 132 if (allowMultipleTerms) 137 133 AddTransition(StateTermEnd, StateTermStart, () => { … … 353 349 private readonly int[] followStatesBuf = new int[1000]; 354 350 public void FollowStates(int state, out int[] buf, out int nElements) { 355 // for loop instead of where iterator356 351 var fs = followStates[state]; 357 352 int j = 0;
Note: See TracChangeset
for help on using the changeset viewer.