Current way I structured this is kind of non-intuitive. Perhaps there's a nicer way?
An important requirement is that the parameters be attached to the OptimalControlProblem instance, and allow updating
A possible solution is to have the user make a subclass of ProblemParameters for each problem which implements update_fun without referring to the OptimalControlProblem subclass.
Current way I structured this is kind of non-intuitive. Perhaps there's a nicer way?
OptimalControlProblem
instance, and allow updatingProblemParameters
for each problem which implementsupdate_fun
without referring to theOptimalControlProblem
subclass.__init__
?