Opened 5 weeks ago

Last modified 2 weeks ago

#2997 assigned defect

When using multi encoding in combination with several symbolic expression trees, only the grammar of the first used symbolic expression tree is used to generate syntax trees.

Reported by: rhanghof Owned by: rhanghof
Priority: medium Milestone: HeuristicLab 3.3.16
Component: Encodings.SymbolicExpressionTreeEncoding Version: 3.3.15
Keywords: Cc:

Description (last modified by rhanghof)

When using multi encoding in combination with several symbolic expression trees, only the grammar of the first used symbolic expression tree is used to generate syntax trees. The grammar for creating the syntax trees is stored in the Global Scope and cloned from the grammar of the first syntax tree in the encoding when first used. The setting of the cloned grammar in the global scope can be found in the method InstrumentedApply of the class SymbolicExpressionTreeCreator.
Due to the query if (ClonedSymbolicExpressionTreeGrammarParameter.ActualValue == null) it is only set the very first time. Thus it is not possible to set the grammar for another symbolic expression tree.

Attachments (2)

Genetic Algorithm (GA) - Syntax Expression Tree MultiEncoding sample.hl (153.7 KB) - added by rhanghof 4 weeks ago.
Syntax expression tree multi-encoding sample
Genetic Algorithm (GA) - Syntax Expression Tree MultiEncoding sample - update.hl (104.7 KB) - added by rhanghof 13 days ago.
Syntax expression tree multi-encoding sample

Download all attachments as: .zip

Change History (6)

comment:1 Changed 5 weeks ago by rhanghof

  • Component changed from Problems.DataAnalysis.Symbolic to Encodings.SymbolicExpressionTreeEncoding
  • Description modified (diff)

comment:2 Changed 5 weeks ago by mkommend

Please attach a minimal sample (multi-encoding with two symbolic expression tree encodings and vastly different grammars) that reproduces the issue for debugging purposes.

Last edited 5 weeks ago by mkommend (previous) (diff)

Changed 4 weeks ago by rhanghof

Syntax expression tree multi-encoding sample

comment:3 Changed 2 weeks ago by mkommend

Unfortunately the provided example cannot be loaded with a standard version of HL, because it uses a proprietary plugin HeuristicLab.Problems.Matlab.ModelLearning or HeuristicLab.Problems.Matlab.ModelLearning.Optimization and maybe even others.

comment:4 Changed 2 weeks ago by mkommend

  • Owner set to rhanghof
  • Status changed from new to assigned

Changed 13 days ago by rhanghof

Syntax expression tree multi-encoding sample

Note: See TracTickets for help on using tickets.