Describe the bug
An exception is raised when trying to run structure-template GP without linear scaling.
HeuristicLab version: 3.3.16.8896
OperatorExecutionException: An exception was thrown by the operator "Single-objective Evaluator" [C:\Users\Gabriel\Downloads\HeuristicLab trunk\HeuristicLab.Optimization-3.3.dll: 3.3.16.8896]: Numeric Parameters cannot be found in the provided scope.
at HeuristicLab.ParallelEngine.ParallelEngine.Run(Object state) in C:\BuildAgent\work\aa9d273859221be0\HeuristicLab.ParallelEngine\3.3\ParallelEngine.cs:line 122
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
-----
ArgumentException: Numeric Parameters cannot be found in the provided scope.
at HeuristicLab.Optimization.Individual.ExtractScopeValue(String name, IScope scope) in C:\BuildAgent\work\aa9d273859221be0\HeuristicLab.Optimization\3.3\BasicProblems\Individuals\Individual.cs:line 65
at HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.StructureTemplateSymbolicRegressionProblem.BuildTreeFromIndividual(ISymbolicExpressionTree template, Individual individual, Boolean containsNumericParameters) in C:\BuildAgent\work\aa9d273859221be0\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression\3.4\SingleObjective\StructureTemplateSymbolicRegressionProblem.cs:line 350
at HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.StructureTemplateSymbolicRegressionProblem.Evaluate(Individual individual, IRandom random) in C:\BuildAgent\work\aa9d273859221be0\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression\3.4\SingleObjective\StructureTemplateSymbolicRegressionProblem.cs:line 287
at HeuristicLab.Optimization.SingleObjectiveEvaluator.InstrumentedApply() in C:\BuildAgent\work\aa9d273859221be0\HeuristicLab.Optimization\3.3\BasicProblems\Operators\SingleObjectiveEvaluator.cs:line 61
at HeuristicLab.Operators.Operator.Execute(IExecutionContext context, CancellationToken cancellationToken) in C:\BuildAgent\work\aa9d273859221be0\HeuristicLab.Operators\3.3\Operator.cs:line 123
at HeuristicLab.ParallelEngine.ParallelEngine.Run(Object state) in C:\BuildAgent\work\aa9d273859221be0\HeuristicLab.ParallelEngine\3.3\ParallelEngine.cs:line 117
To Reproduce
Steps to reproduce the behavior:
Open "Genetic Programming - Structure Template" Sample
Open "Structure Template" parameter and disable linear scaling checkbox.
Start algorithm
See error
Expected behavior
Should work with and without linear scaling
Describe the bug An exception is raised when trying to run structure-template GP without linear scaling.
To Reproduce Steps to reproduce the behavior:
Expected behavior Should work with and without linear scaling