a4f66628fd
* initial commit * run parametrized algorithm with command line parameters * skeleton: top level structure * OptimizationNodePacket scheme * pass parameters as HashSet * run Lean and read results * call method on optimization completion * refactor public interfaces - close ParameterSet collection; allow only get operations - explicit method to start LeanOptimizer * synchronize RunLean method; the result could come in before the backtest id is set in the collections * another portion of refactoring and interface changes * comments * comments & tests for Extremum, Minimization and Maximization classes * unify optimization paramater values (min, max, step) & mode GridSearch tests - swap min&max if necessary - iterate left => right (negate step value if necessary) & provide default step value if step == 0 - no StackOverflow Exception - parameterSet Id should be global for current generator and retain between steps - test signle point boundary (min == max) * BruteForceStrategy tests * more comments * Update Optimizer assembly information - Update Optimizer projects assembly information to match behavior of the other projects * Tweaks - Adding comments - Replace OnComplete for Ended event - Replace Abort for Dispose - ConsoleLeanOptimizer will keep track of running processes - Each backtest will store results in a separated directory, so they don't fight for the log.txt file. - Adding cmdline option for lean to close automatically - Adding concurrent execution backtest limit - Console optimizer will start Lean minimized - Escape spaces in Json path * remove parameter set generator abstraction layer we don't need this flexibility now. * refactor public methods; Step shouldn't be public * constraints: wip * define contract * comparison operators and tests * specify JsonProperty values * Move SafeMultiply100 to extensions * Throw exception on failed Optimizer.Start * constraints: wip * change finish & dispose process * minor fixes - handle force lean abort - notify consumer if target has been reached * target & constraints; adapt unit tests * Minor Tweaks and fixes - Some logging improvements - Remove Public since not required * Ignore empty ParameterValue * simplify condition * avoid reinitialization * reduce type; force immutable * unit tests for constraints and target value * parse & normalize percent values, i.e. 20% => 0.2 * fixup * Target & Constraint & OptimizationNodePacket unit tests * Add more json unit tests - Adding more json conversion unit tests. Fix bug for Extremum which wasn't using the converter. * LeanOptimizer tests * Estimation results * User thread safe counters * LeanOptimizer unit tests; push OptimizationResult on Ended event * more unit tests * Minor tweaks -Estimate ToString in a single line. -Typos and missing header file * Add base SendUpdate method - Add base SendUpdate method for LeanOptimizer * fix LeanOptimizer test; rely on internal Update rather than timer * Add OptimizationStatus - Add missing commments and OptimizationStatus * EulerSearch implementation: wip * OptimizationParameter custom converter * change the type * make step optional * change folder structure * enumerate optimization parameter using IEnumerable & IEnumerator * unit tests: parameters & objectives * unit tests: strategies * remove redundant TODO * change Euler search boundaries * more Euler tests * prevent race condition * Add account/read endpoint - Adding account/read endpoint. Adding unit test * Add status check before running lean * Minor self review - Adding missing comments, minor changes * remove array parameters * minor changes - tidy up config file, rename variable - accept min less or equal than max * move OptimizationParameter methods to strategies * Minor improvements for BaseResultHandler derivates * minor changes - strict requirements for Step and MinStep values - strategy specific settigs * Add TotalRuntime to estimate Co-authored-by: Martin Molinero <martin.molinero1@gmail.com>
102 lines
4.8 KiB
XML
102 lines
4.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
<PropertyGroup>
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
<ProjectGuid>{4ECD7DF3-A675-4E9E-ACA3-2B51C88736CE}</ProjectGuid>
|
|
<OutputType>Library</OutputType>
|
|
<RootNamespace>QuantConnect.Optimizer</RootNamespace>
|
|
<AssemblyName>QuantConnect.Optimizer</AssemblyName>
|
|
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
|
<FileAlignment>512</FileAlignment>
|
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
|
<Deterministic>true</Deterministic>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DebugType>full</DebugType>
|
|
<Optimize>false</Optimize>
|
|
<OutputPath>bin\Debug\</OutputPath>
|
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<LangVersion>latest</LangVersion>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
<DebugType>pdbonly</DebugType>
|
|
<Optimize>true</Optimize>
|
|
<OutputPath>bin\Release\</OutputPath>
|
|
<DefineConstants>TRACE</DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<LangVersion>latest</LangVersion>
|
|
</PropertyGroup>
|
|
<PropertyGroup>
|
|
<StartupObject />
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
|
<HintPath>..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="System" />
|
|
<Reference Include="System.Core" />
|
|
<Reference Include="System.Xml.Linq" />
|
|
<Reference Include="System.Data.DataSetExtensions" />
|
|
<Reference Include="Microsoft.CSharp" />
|
|
<Reference Include="System.Data" />
|
|
<Reference Include="System.Net.Http" />
|
|
<Reference Include="System.Xml" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Compile Include="..\Common\Properties\SharedAssemblyInfo.cs">
|
|
<Link>Properties\SharedAssemblyInfo.cs</Link>
|
|
</Compile>
|
|
<Compile Include="Objectives\ExtremumJsonConverter.cs" />
|
|
<Compile Include="Parameters\OptimizationParameter.cs" />
|
|
<Compile Include="Parameters\OptimizationStepParameterEnumerator.cs" />
|
|
<Compile Include="Parameters\OptimizationStepParameter.cs" />
|
|
<Compile Include="Parameters\OptimizationParameterJsonConverter.cs" />
|
|
<Compile Include="Strategies\StepBaseOptimizationStrategySettings.cs" />
|
|
<Compile Include="Strategies\OptimizationStrategySettings.cs" />
|
|
<Compile Include="Strategies\StepBaseOptimizationStrategy.cs" />
|
|
<Compile Include="Objectives\Objective.cs" />
|
|
<Compile Include="OptimizationEstimate.cs" />
|
|
<Compile Include="Objectives\Target.cs" />
|
|
<Compile Include="Objectives\Constraint.cs" />
|
|
<Compile Include="LeanOptimizer.cs" />
|
|
<Compile Include="Objectives\Minimization.cs" />
|
|
<Compile Include="Objectives\Maximization.cs" />
|
|
<Compile Include="Objectives\Extremum.cs" />
|
|
<Compile Include="Strategies\EulerSearchOptimizationStrategy.cs" />
|
|
<Compile Include="Strategies\IOptimizationStrategy.cs" />
|
|
<Compile Include="Strategies\GridSearchOptimizationStrategy.cs" />
|
|
<Compile Include="OptimizationNodePacket.cs" />
|
|
<Compile Include="Parameters\OptimizationParameterEnumerator.cs" />
|
|
<Compile Include="OptimizationResult.cs" />
|
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
<Compile Include="Parameters\ParameterSet.cs" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Include="App.config" />
|
|
<None Include="packages.config" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\Common\QuantConnect.csproj">
|
|
<Project>{2545C0B4-FABB-49C9-8DD1-9AD7EE23F86B}</Project>
|
|
<Name>QuantConnect</Name>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\Configuration\QuantConnect.Configuration.csproj">
|
|
<Project>{0AEB4EA3-28C8-476E-89FD-926F06590B4C}</Project>
|
|
<Name>QuantConnect.Configuration</Name>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\Logging\QuantConnect.Logging.csproj">
|
|
<Project>{01911409-86BE-4E7D-9947-DF714138610D}</Project>
|
|
<Name>QuantConnect.Logging</Name>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
<ItemGroup />
|
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
</Project> |