A Genetic Programming Framework for .NET

EngineOptions.MaxTreeDepth Property

Gets or sets the maximum tree depth limit.

public int MaxTreeDepth {get; set;}

Property Value

The default value is 3.

Remarks

This value is used for the maxDepth parameter to GenerateRandomTree, which is called to generate the initial random Population when a new run is started.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException Thrown when value is less than or equal to zero.

See Also

EngineOptions Class | GeneticProgrammingEngine.Internal Namespace | MaxTreeWidth Property | GenerateRandomTree Method