Skip to content

OptimizationParameterEnumerator

QuantConnect.Optimizer.Parameters.OptimizationParameterEnumerator

OptimizationParameterEnumerator(
    optimization_parameter: QuantConnect_Optimizer_Parameters_OptimizationParameterEnumerator_T,
)

Bases: Generic[QuantConnect_Optimizer_Parameters_OptimizationParameterEnumerator_T], Object, IEnumerator[str]

Enumerates all possible values for specific optimization parameter

This codeEntityType is protected.

optimization_parameter

optimization_parameter: QuantConnect_Optimizer_Parameters_OptimizationParameterEnumerator_T

The target optimization parameter to enumerate

This codeEntityType is protected.

index

index: int

The current enumeration state

This codeEntityType is protected.

current

current: str

Gets the element in the collection at the current position of the enumerator.

dispose

dispose() -> None

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

move_next

move_next() -> bool

Advances the enumerator to the next element of the collection.

Returns:

Type Description
bool

true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

reset

reset() -> None

Sets the enumerator to its initial position, which is before the first element in the collection.