NumberOfIterations

View as Markdown

Definition

Informs the Strategy Analyzer how many iterations of optimizing it needs to do.

Property Value

An int value.

Syntax

NumberOfIterations

Examples

1protected override void OnStateChange()
2{
3 if (State == State.SetDefaults)
4 Name = "MyOptimizer";
5 else if (State == State.Configure && Strategies.Count > 0)
6 NumberOfIterations = 1;
7}