nzo-heschel/MillionSuns

Modeling a scenario

Closed this issue · 0 comments

Basically the _calculateYear function from the model. Given a scenario, calculate the mix of electricity sources and electricity generation stats for each year. The existing implementation may help here, even though it's for a pretty different purpose.

Relevant functions in the original model:

  • model.js - _calculateYear: The actual model
  • roadmaps.js - Roadmap.simulate: Prepares a scenario for modeling. Helps in understanding the inputs and outputs of the model.
  • config.js - _updateParametersFromScenario: Answers the age-old question - what's a scenario?
  • scenarios.js - _updateScenarioWithResults: Answers another age-old question - what are the outputs of the model?