Base Lean optimizer class in charge of handling an optimization job packet
More...
Base Lean optimizer class in charge of handling an optimization job packet
Definition at line 33 of file LeanOptimizer.cs.
◆ LeanOptimizer()
Creates a new instance
- Parameters
-
nodePacket | The optimization node packet to handle |
Definition at line 99 of file LeanOptimizer.cs.
◆ Start()
virtual void QuantConnect.Optimizer.LeanOptimizer.Start |
( |
| ) |
|
|
virtual |
◆ TriggerOnEndEvent()
virtual void QuantConnect.Optimizer.LeanOptimizer.TriggerOnEndEvent |
( |
| ) |
|
|
protectedvirtual |
◆ RunLean()
abstract string QuantConnect.Optimizer.LeanOptimizer.RunLean |
( |
ParameterSet |
parameterSet, |
|
|
string |
backtestName |
|
) |
| |
|
protectedpure virtual |
◆ GetBacktestName()
virtual string QuantConnect.Optimizer.LeanOptimizer.GetBacktestName |
( |
ParameterSet |
parameterSet | ) |
|
|
protectedvirtual |
◆ NewResult()
virtual void QuantConnect.Optimizer.LeanOptimizer.NewResult |
( |
string |
jsonBacktestResult, |
|
|
string |
backtestId |
|
) |
| |
|
protectedvirtual |
Handles a new backtest json result matching a requested backtest id
- Parameters
-
jsonBacktestResult | The backtest json result |
backtestId | The associated backtest id |
Definition at line 212 of file LeanOptimizer.cs.
◆ Dispose()
virtual void QuantConnect.Optimizer.LeanOptimizer.Dispose |
( |
| ) |
|
|
virtual |
◆ GetCurrentEstimate()
int QuantConnect.Optimizer.LeanOptimizer.GetCurrentEstimate |
( |
| ) |
|
Returns the current optimization status and strategy estimates
Definition at line 280 of file LeanOptimizer.cs.
◆ GetRuntimeStatistics()
Dictionary<string, string> QuantConnect.Optimizer.LeanOptimizer.GetRuntimeStatistics |
( |
| ) |
|
◆ GetLogDetails()
string QuantConnect.Optimizer.LeanOptimizer.GetLogDetails |
( |
| ) |
|
|
protected |
Helper method to have pretty more informative logs
Definition at line 309 of file LeanOptimizer.cs.
◆ AbortLean()
abstract void QuantConnect.Optimizer.LeanOptimizer.AbortLean |
( |
string |
backtestId | ) |
|
|
protectedpure virtual |
◆ SendUpdate()
abstract void QuantConnect.Optimizer.LeanOptimizer.SendUpdate |
( |
| ) |
|
|
protectedpure virtual |
◆ SetOptimizationStatus()
virtual void QuantConnect.Optimizer.LeanOptimizer.SetOptimizationStatus |
( |
OptimizationStatus |
optimizationStatus | ) |
|
|
protectedvirtual |
Sets the current optimization status
- Parameters
-
optimizationStatus | The new optimization status |
Definition at line 333 of file LeanOptimizer.cs.
◆ CompletedBacktests
int QuantConnect.Optimizer.LeanOptimizer.CompletedBacktests => _failedBacktest + _completedBacktest |
|
protected |
◆ Disposed
bool QuantConnect.Optimizer.LeanOptimizer.Disposed => _disposed |
|
protected |
◆ Status
◆ OptimizationTarget
Target QuantConnect.Optimizer.LeanOptimizer.OptimizationTarget |
|
getprotected |
◆ RunningParameterSetForBacktest
ConcurrentDictionary<string, ParameterSet> QuantConnect.Optimizer.LeanOptimizer.RunningParameterSetForBacktest |
|
getprotected |
Collection holding ParameterSet for each backtest id we are waiting to finish
Definition at line 67 of file LeanOptimizer.cs.
◆ PendingParameterSet
ConcurrentQueue<ParameterSet> QuantConnect.Optimizer.LeanOptimizer.PendingParameterSet |
|
getprotected |
Collection holding ParameterSet for each backtest id we are waiting to launch
We can't launch 1 million backtests at the same time
Definition at line 73 of file LeanOptimizer.cs.
◆ Strategy
◆ NodePacket
◆ Ended
Event triggered when the optimization work ended
Definition at line 93 of file LeanOptimizer.cs.
The documentation for this class was generated from the following file: