{"action":"created","issue":{"url":"https://api.github.com/repos/QuantConnect/Lean/issues/96","labels_url":"https://api.github.com/repos/QuantConnect/Lean/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/QuantConnect/Lean/issues/96/comments","events_url":"https://api.github.com/repos/QuantConnect/Lean/issues/96/events","html_url":"https://github.com/QuantConnect/Lean/issues/96","id":85961593,"number":96,"title":"Add Support for Algorithm Parameter Inputs (Configurable variables)","user":{"login":"mattycourtney","id":388313,"avatar_url":"https://avatars.githubusercontent.com/u/388313?v=3","gravatar_id":"","url":"https://api.github.com/users/mattycourtney","html_url":"https://github.com/mattycourtney","followers_url":"https://api.github.com/users/mattycourtney/followers","following_url":"https://api.github.com/users/mattycourtney/following{/other_user}","gists_url":"https://api.github.com/users/mattycourtney/gists{/gist_id}","starred_url":"https://api.github.com/users/mattycourtney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattycourtney/subscriptions","organizations_url":"https://api.github.com/users/mattycourtney/orgs","repos_url":"https://api.github.com/users/mattycourtney/repos","events_url":"https://api.github.com/users/mattycourtney/events{/privacy}","received_events_url":"https://api.github.com/users/mattycourtney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-06-07T23:18:22Z","updated_at":"2015-10-22T07:39:33Z","closed_at":null,"body":"Enable finding the optimal set of parameters to trade an algorithm with"},"comment":{"url":"https://api.github.com/repos/QuantConnect/Lean/issues/comments/150132884","html_url":"https://github.com/QuantConnect/Lean/issues/96#issuecomment-150132884","issue_url":"https://api.github.com/repos/QuantConnect/Lean/issues/96","id":150132884,"user":{"login":"chrisdk2015","id":14743041,"avatar_url":"https://avatars.githubusercontent.com/u/14743041?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdk2015","html_url":"https://github.com/chrisdk2015","followers_url":"https://api.github.com/users/chrisdk2015/followers","following_url":"https://api.github.com/users/chrisdk2015/following{/other_user}","gists_url":"https://api.github.com/users/chrisdk2015/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdk2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdk2015/subscriptions","organizations_url":"https://api.github.com/users/chrisdk2015/orgs","repos_url":"https://api.github.com/users/chrisdk2015/repos","events_url":"https://api.github.com/users/chrisdk2015/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdk2015/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T07:39:33Z","updated_at":"2015-10-22T07:39:33Z","body":"Ok, I have something that works now that I just committed.\r\n\r\nhttps://github.com/chrisdk2015/LeanOptimization\r\n\r\nMore hacky than clean but it works.\r\n\r\nHowever on my machine, old laptop with Intel mobile CPU U7300 @ 1.30 GHz running Ubuntu 14.04 what slows the optimization down is the step from exiting the algorithm manager, waiting for the threads to exit and until the next engine is up and running.\r\n\r\nThere's a approx. 40 second delay there as you can see from the log:\r\n\r\n```\r\n20151022 09:30:34 Trace:: Engine.Run(): Exiting Algorithm Manager\r\n20151022 09:30:35 ERROR:: StatisticsBuilder.EnsureSameLength(): Padded Performance\r\n20151022 09:30:42 Trace:: FileSystemDataFeed.Exit(): Exit triggered.\r\n20151022 09:30:42 Trace:: BrokerageTransactionHandler.Run(): Ending Thread...\r\n20151022 09:30:42 Trace:: Waiting for threads to exit...\r\n20151022 09:31:12 Trace:: Engine.Main(): Analysis Completed and Results Posted.\r\n20151022 09:31:12 Trace:: FileSystemDataFeed.Exit(): Exit triggered.\r\nRunning algorithm with value: 33\r\n20151022 09:31:13 Trace:: Config.Get(): Configuration key not found. Key: plugin-directory - Using default value: \r\n\r\n```\r\n\r\nMaybe you haven't noticed this is faster machines. \r\n\r\nI also noticed this on single backtests using the ordinary engine creation logic.\r\n"}}