CADLabs / radCAD

A Python framework for designing, testing, and validating complex systems through modelling and simulation.
GNU General Public License v3.0
97 stars 25 forks source link

Policy Function can mutate state that is passed to State Update Function #53

Closed BenSchZA closed 2 years ago

BenSchZA commented 2 years ago

Currently, a Policy Function can mutate the state that is then passed to a State Update Function. One possible solution: two state copies should be created and passed independently to the Policy and State Update Functions.

See https://github.com/CADLabs/radCAD/blob/a5fa0e6df269fa49eecca1fd7cbd69defd482ec1/radcad/core.py#L64

BenSchZA commented 2 years ago

Closed by #54