[Feature] Enable optional parameters for objective functions with functools #36
Labels
Comp:Core
This issue has to do with the main bulk of the code or document. (methods, main content)
Difficulty:3-Expert
This issue is not only complicated, but also complex. It may require special advanced skills.
Priority:3-Desired
This work is important, but not urgent.
Status:2-Backlog
This issue has been claimed, but it's not being worked on right now, and it's not next to be tackled
Type:Feature
New feature or feature request
Currently, all objectives and constraints in
osier
require two items, the list of technologies and a solved dispatch model. Some calculations will require tunable parameters. Such as a volatility calculation usingweighted_permutation_entropy
, for example. Therefore, allowing users to specify the optional parameters at run time with some thing like:Where the second objective function
func2
has some optional parameters that cannot be set once a simulation begins (except by usingfunctools.partial
).Edit:
To clarify the desired behavior, users should be able to pass a function and it's parameters to
osier
without explicitly callingfunctools.partial
. E.g.,Users would be required to know which parameters they need.
Conversation
@yardasol @ZoeRichter @smpark7 @nsryan2 @munkm
Does this functionality make sense? Which version is clearer? The clarification would add more complexity to the
osier.CapacityExpansion
object, but it's already so similar to thefunctools
implementation that I'm not sure anymore if the "simplification" makes sense. Looking for thoughts.The text was updated successfully, but these errors were encountered: