OptimizationStepParameterEnumerator
QuantConnect.Optimizer.Parameters.OptimizationStepParameterEnumerator
OptimizationStepParameterEnumerator(
optimization_parameter: OptimizationStepParameter,
)
Bases: OptimizationParameterEnumerator[OptimizationStepParameter]
Enumerates all possible values for specific optimization parameter
Creates an instance of OptimizationStepParameterEnumerator
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
optimization_parameter
|
OptimizationStepParameter
|
Step-based optimization parameter |
required |
current
current: str
Gets the element in the collection at the current position of the enumerator.
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.
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. |
dispose
dispose() -> None
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
reset
reset() -> None
Sets the enumerator to its initial position, which is before the first element in the collection.