Add the option to define a time horizon for a demand commdity #10
Labels
Comp:Input
This issue has to do with the input component of the code or document. (input parameters, prep)
Difficulty:1-Beginner
This issue does not require expert knowledge and may be a good issue for new contributors.
Priority:3-Desired
This work is important, but not urgent.
Status:1-New
No one has claimed this issue yet. It is in need of solving.
Type:Feature
New feature or feature request
Current behavior:
Demand commodities are defined with the
DemandCommodity
object and initialized for a new region withDemandCommodity.add_demand()
. When users call.add_demand()
they must supplyAlso, if users set up a distribution for a particular demand, users need to call
DemandCommodity.set_distribution()
and further specifyDesired behavior:
In order to simplify the input, users should be able to optionally initialize a commodity time horizon. This will be helpful when users add many regions. In other words, users should be able to call
set_timehorizon()
to specify this information once, since it will be the same across all commodities in a simulation.Guidance:
add_demand
should check if the time horizon information has already been instantiated. If it has not been, and users have not specified it inadd_demand
an error should be thrown.The text was updated successfully, but these errors were encountered: