{"action":"created","issue":{"url":"https://api.github.com/repos/quintel/etengine/issues/495","repository_url":"https://api.github.com/repos/quintel/etengine","labels_url":"https://api.github.com/repos/quintel/etengine/issues/495/labels{/name}","comments_url":"https://api.github.com/repos/quintel/etengine/issues/495/comments","events_url":"https://api.github.com/repos/quintel/etengine/issues/495/events","html_url":"https://github.com/quintel/etengine/issues/495","id":8987032,"number":495,"title":"Graph should be able to recalculate without the tricks now used for Merit Order","user":{"login":"dennisschoenmakers","id":104830,"avatar_url":"https://avatars.githubusercontent.com/u/104830?v=3","gravatar_id":"","url":"https://api.github.com/users/dennisschoenmakers","html_url":"https://github.com/dennisschoenmakers","followers_url":"https://api.github.com/users/dennisschoenmakers/followers","following_url":"https://api.github.com/users/dennisschoenmakers/following{/other_user}","gists_url":"https://api.github.com/users/dennisschoenmakers/gists{/gist_id}","starred_url":"https://api.github.com/users/dennisschoenmakers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennisschoenmakers/subscriptions","organizations_url":"https://api.github.com/users/dennisschoenmakers/orgs","repos_url":"https://api.github.com/users/dennisschoenmakers/repos","events_url":"https://api.github.com/users/dennisschoenmakers/events{/privacy}","received_events_url":"https://api.github.com/users/dennisschoenmakers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/quintel/etengine/labels/Clean-up","name":"Clean-up","color":"0b02e1"},{"url":"https://api.github.com/repos/quintel/etengine/labels/On%20hold","name":"On hold","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"antw","id":4383,"avatar_url":"https://avatars.githubusercontent.com/u/4383?v=3","gravatar_id":"","url":"https://api.github.com/users/antw","html_url":"https://github.com/antw","followers_url":"https://api.github.com/users/antw/followers","following_url":"https://api.github.com/users/antw/following{/other_user}","gists_url":"https://api.github.com/users/antw/gists{/gist_id}","starred_url":"https://api.github.com/users/antw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antw/subscriptions","organizations_url":"https://api.github.com/users/antw/orgs","repos_url":"https://api.github.com/users/antw/repos","events_url":"https://api.github.com/users/antw/events{/privacy}","received_events_url":"https://api.github.com/users/antw/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2012-12-04T15:15:06Z","updated_at":"2016-05-03T13:39:56Z","closed_at":null,"body":"From graph.rb:\n\n```Ruby\n\n        if use_merit_order_demands? && future?\n          dataset_copy = Marshal.load(Marshal.dump(@dataset))\n        end\n\n        calculation_loop # the initial loop\n\n        if use_merit_order_demands? && future?\n          mo = Plugins::MeritOrder::MeritOrderInjector.new(self)\n          mo.run\n          detach_dataset!\n          self.dataset = dataset_copy\n          mo.inject_updated_demand\n          calculation_loop\n        end\n\n```"},"comment":{"url":"https://api.github.com/repos/quintel/etengine/issues/comments/216530363","html_url":"https://github.com/quintel/etengine/issues/495#issuecomment-216530363","issue_url":"https://api.github.com/repos/quintel/etengine/issues/495","id":216530363,"user":{"login":"antw","id":4383,"avatar_url":"https://avatars.githubusercontent.com/u/4383?v=3","gravatar_id":"","url":"https://api.github.com/users/antw","html_url":"https://github.com/antw","followers_url":"https://api.github.com/users/antw/followers","following_url":"https://api.github.com/users/antw/following{/other_user}","gists_url":"https://api.github.com/users/antw/gists{/gist_id}","starred_url":"https://api.github.com/users/antw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antw/subscriptions","organizations_url":"https://api.github.com/users/antw/orgs","repos_url":"https://api.github.com/users/antw/repos","events_url":"https://api.github.com/users/antw/events{/privacy}","received_events_url":"https://api.github.com/users/antw/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T13:39:56Z","updated_at":"2016-05-03T13:39:56Z","body":"> antw was assigned on Dec 7, 2012 [...] Still relevant, @antw?\r\n\r\nA little late to the party, but... I *think* it is relevant, especially in light of the merit order now being enabled by default. However I don't see any way to integrate the demands of merit order participants *without* recalculating the whole graph.\r\n\r\nThere are probably smart solutions to this, such as finding all ancestors and descendants of the participants and recalculating only those, but the producers are so central to the network that this includes most nodes in the graph.\r\n\r\nMy feeling is that this is an item for the ETEngine v2.0 wishlist, should that day ever come. For the time being, I don't think we can do anything about this. 😞 "}}