{"action":"created","issue":{"url":"https://api.github.com/repos/quintel/etmoses/issues/208","labels_url":"https://api.github.com/repos/quintel/etmoses/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/quintel/etmoses/issues/208/comments","events_url":"https://api.github.com/repos/quintel/etmoses/issues/208/events","html_url":"https://github.com/quintel/etmoses/issues/208","id":93750955,"number":208,"title":"How to measure flexibility?","user":{"login":"ChaelKruip","id":1303760,"avatar_url":"https://avatars.githubusercontent.com/u/1303760?v=3","gravatar_id":"","url":"https://api.github.com/users/ChaelKruip","html_url":"https://github.com/ChaelKruip","followers_url":"https://api.github.com/users/ChaelKruip/followers","following_url":"https://api.github.com/users/ChaelKruip/following{/other_user}","gists_url":"https://api.github.com/users/ChaelKruip/gists{/gist_id}","starred_url":"https://api.github.com/users/ChaelKruip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChaelKruip/subscriptions","organizations_url":"https://api.github.com/users/ChaelKruip/orgs","repos_url":"https://api.github.com/users/ChaelKruip/repos","events_url":"https://api.github.com/users/ChaelKruip/events{/privacy}","received_events_url":"https://api.github.com/users/ChaelKruip/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/quintel/etmoses/labels/Enhancement","name":"Enhancement","color":"bfd4f2"}],"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":{"url":"https://api.github.com/repos/quintel/etmoses/milestones/7","html_url":"https://github.com/quintel/etmoses/milestones/Market%20Models","labels_url":"https://api.github.com/repos/quintel/etmoses/milestones/7/labels","id":1188659,"number":7,"title":"Market Models","description":null,"creator":{"login":"ChaelKruip","id":1303760,"avatar_url":"https://avatars.githubusercontent.com/u/1303760?v=3","gravatar_id":"","url":"https://api.github.com/users/ChaelKruip","html_url":"https://github.com/ChaelKruip","followers_url":"https://api.github.com/users/ChaelKruip/followers","following_url":"https://api.github.com/users/ChaelKruip/following{/other_user}","gists_url":"https://api.github.com/users/ChaelKruip/gists{/gist_id}","starred_url":"https://api.github.com/users/ChaelKruip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChaelKruip/subscriptions","organizations_url":"https://api.github.com/users/ChaelKruip/orgs","repos_url":"https://api.github.com/users/ChaelKruip/repos","events_url":"https://api.github.com/users/ChaelKruip/events{/privacy}","received_events_url":"https://api.github.com/users/ChaelKruip/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":0,"state":"open","created_at":"2015-07-01T09:24:00Z","updated_at":"2015-07-08T12:43:23Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-07-08T09:54:12Z","updated_at":"2015-07-08T13:59:08Z","closed_at":null,"body":"One of the 'measurables' in the LES which will be used in financial transactions is the amount of used flexibility and the potential for flexibility. We have defined these with the client:\r\n\r\n* Used flexibility: the difference between the blue and the green curves in the load chart (at the level of the end-points). For a co-operation this is the sum of the end-points that are part of the 'Aggregator' stakeholder. NOTE: this approach implies that assignment to the 'Aggregator' needs to happen on a per-endpoint basis (see [this ticket](https://github.com/quintel/etmoses/issues/207)).\r\n\r\n* Potential flexibility: the mean of the Used flexibility (see above) so far. \r\n"},"comment":{"url":"https://api.github.com/repos/quintel/etmoses/issues/comments/119588294","html_url":"https://github.com/quintel/etmoses/issues/208#issuecomment-119588294","issue_url":"https://api.github.com/repos/quintel/etmoses/issues/208","id":119588294,"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":"2015-07-08T13:59:08Z","updated_at":"2015-07-08T13:59:08Z","body":"> > It means we need to calculate the network at least twice\r\n>\r\n> We already do that right?\r\n\r\nWe do, but only when the user *wants* both, and the results of the calculation are not cached or stored on the server for future use (for example, by the market model). It works like this:\r\n\r\n1. User loads LES page.\r\n2. Browser requests the \"blue-curve\" network.\r\n3. Server calculates \"blue-curve\" network and sends back the results.\r\n4. Browser shows the network diagram and charts.\r\n5. User enables a storage/flexibility option. Browser requests the \"green-curve\" chart.\r\n6. Server calculates \"green-curve\" network and sends back the results.\r\n7. Browser updates the network diagram and charts.\r\n\r\nWhen the market model needs both, it has to compute both before it can calculate the market model interactions:\r\n\r\n1. User views market model.\r\n2. Server computes blue-curve network.\r\n3. Server computes green-curve network.\r\n4. Server computes market model, and sends the results to the browser.\r\n\r\nIf calculating the LES takes 5 seconds, that's 10 seconds of set-up time (blue+green networks) before we even get to calculating the market model.\r\n\r\nAnyway, that's not really an issue; just something to be aware of.\r\n\r\n--\r\n\r\n> I'll confirm this with our client later this week.\r\n\r\nI'll wait until you've heard before I make any changes to the market model."}}