Lean
$LEAN_TAG$
|
Base class for any optimization built on top of brute force optimization method More...
Public Member Functions | |
virtual void | Initialize (Target target, IReadOnlyList< Constraint > constraints, HashSet< OptimizationParameter > parameters, OptimizationStrategySettings settings) |
Initializes the strategy using generator, extremum settings and optimization parameters More... | |
abstract void | PushNewResults (OptimizationResult result) |
Checks whether new lean compute job better than previous and run new iteration if necessary. More... | |
int | GetTotalBacktestEstimate () |
Calculate number of parameter sets within grid More... | |
Protected Member Functions | |
virtual void | OnNewParameterSet (ParameterSet parameterSet) |
Handles new parameter set More... | |
virtual void | ProcessNewResult (OptimizationResult result) |
IEnumerable< ParameterSet > | Step (HashSet< OptimizationParameter > args) |
Enumerate all possible arrangements More... | |
Properties | |
bool | Initialized [get, set] |
Indicates was strategy initialized or no More... | |
HashSet< OptimizationParameter > | OptimizationParameters [get, set] |
Optimization parameters More... | |
Target | Target [get, set] |
Optimization target, i.e. maximize or minimize More... | |
IEnumerable< Constraint > | Constraints [get, set] |
Optimization constraints; if it doesn't comply just drop the backtest More... | |
OptimizationResult | Solution [get, protected set] |
Keep the best found solution - lean computed job result and corresponding parameter set More... | |
OptimizationStrategySettings | Settings [get, protected set] |
Advanced strategy settings More... | |
Properties inherited from QuantConnect.Optimizer.Strategies.IOptimizationStrategy | |
OptimizationResult | Solution [get] |
Best found solution, its value and parameter set More... | |
Events | |
EventHandler< ParameterSet > | NewParameterSet |
Fires when new parameter set is generated More... | |
Events inherited from QuantConnect.Optimizer.Strategies.IOptimizationStrategy | |
EventHandler< ParameterSet > | NewParameterSet |
Fires when new parameter set is retrieved More... | |
Base class for any optimization built on top of brute force optimization method
Definition at line 28 of file StepBaseOptimizationStrategy.cs.
|
virtual |
Initializes the strategy using generator, extremum settings and optimization parameters
target | The optimization target |
constraints | The optimization constraints to apply on backtest results |
parameters | Optimization parameters |
settings | Optimization strategy settings |
Implements QuantConnect.Optimizer.Strategies.IOptimizationStrategy.
Reimplemented in QuantConnect.Optimizer.Strategies.EulerSearchOptimizationStrategy.
Definition at line 74 of file StepBaseOptimizationStrategy.cs.
|
pure virtual |
Checks whether new lean compute job better than previous and run new iteration if necessary.
result | Lean compute job result and corresponding parameter set |
Implements QuantConnect.Optimizer.Strategies.IOptimizationStrategy.
Implemented in QuantConnect.Optimizer.Strategies.EulerSearchOptimizationStrategy, and QuantConnect.Optimizer.Strategies.GridSearchOptimizationStrategy.
int QuantConnect.Optimizer.Strategies.StepBaseOptimizationStrategy.GetTotalBacktestEstimate | ( | ) |
Calculate number of parameter sets within grid
Implements QuantConnect.Optimizer.Strategies.IOptimizationStrategy.
Definition at line 113 of file StepBaseOptimizationStrategy.cs.
|
protectedvirtual |
Handles new parameter set
parameterSet | New parameter set |
Reimplemented in QuantConnect.Optimizer.Strategies.EulerSearchOptimizationStrategy.
Definition at line 152 of file StepBaseOptimizationStrategy.cs.
|
protected |
Enumerate all possible arrangements
args |
Definition at line 178 of file StepBaseOptimizationStrategy.cs.
|
getsetprotected |
Indicates was strategy initialized or no
Definition at line 35 of file StepBaseOptimizationStrategy.cs.
|
getsetprotected |
Optimization parameters
Definition at line 40 of file StepBaseOptimizationStrategy.cs.
|
getsetprotected |
Optimization target, i.e. maximize or minimize
Definition at line 45 of file StepBaseOptimizationStrategy.cs.
|
getsetprotected |
Optimization constraints; if it doesn't comply just drop the backtest
Definition at line 50 of file StepBaseOptimizationStrategy.cs.
|
getprotected set |
Keep the best found solution - lean computed job result and corresponding parameter set
Definition at line 55 of file StepBaseOptimizationStrategy.cs.
|
getprotected set |
Advanced strategy settings
Definition at line 60 of file StepBaseOptimizationStrategy.cs.
EventHandler<ParameterSet> QuantConnect.Optimizer.Strategies.StepBaseOptimizationStrategy.NewParameterSet |
Fires when new parameter set is generated
Definition at line 65 of file StepBaseOptimizationStrategy.cs.