Lean  $LEAN_TAG$
QuantConnect.Optimizer.OptimizationResult Class Reference

Defines the result of Lean compute job More...

Public Member Functions

 OptimizationResult (string jsonBacktestResult, ParameterSet parameterSet, string backtestId)
 Create an instance of OptimizationResult More...
 

Public Attributes

int Id => ParameterSet?.Id ?? 0
 Parameter set Id More...
 

Static Public Attributes

static readonly OptimizationResult Initial = new OptimizationResult(null, null, null)
 Corresponds to initial result to drive the optimization strategy More...
 

Properties

string BacktestId [get]
 The backtest id that generated this result More...
 
string JsonBacktestResult [get]
 Json Backtest result More...
 
ParameterSet ParameterSet [get]
 The parameter set at which the result was achieved More...
 

Detailed Description

Defines the result of Lean compute job

Definition at line 23 of file OptimizationResult.cs.

Constructor & Destructor Documentation

◆ OptimizationResult()

QuantConnect.Optimizer.OptimizationResult.OptimizationResult ( string  jsonBacktestResult,
ParameterSet  parameterSet,
string  backtestId 
)

Create an instance of OptimizationResult

Parameters
jsonBacktestResultOptimization target value for this backtest
parameterSetParameter set used in compute job
backtestIdThe backtest id that generated this result

Definition at line 56 of file OptimizationResult.cs.

Member Data Documentation

◆ Initial

readonly OptimizationResult QuantConnect.Optimizer.OptimizationResult.Initial = new OptimizationResult(null, null, null)
static

Corresponds to initial result to drive the optimization strategy

Definition at line 28 of file OptimizationResult.cs.

◆ Id

int QuantConnect.Optimizer.OptimizationResult.Id => ParameterSet?.Id ?? 0

Parameter set Id

Definition at line 38 of file OptimizationResult.cs.

Property Documentation

◆ BacktestId

string QuantConnect.Optimizer.OptimizationResult.BacktestId
get

The backtest id that generated this result

Definition at line 33 of file OptimizationResult.cs.

◆ JsonBacktestResult

string QuantConnect.Optimizer.OptimizationResult.JsonBacktestResult
get

Json Backtest result

Definition at line 43 of file OptimizationResult.cs.

◆ ParameterSet

ParameterSet QuantConnect.Optimizer.OptimizationResult.ParameterSet
get

The parameter set at which the result was achieved

Definition at line 48 of file OptimizationResult.cs.


The documentation for this class was generated from the following file: