Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterations #136

Open
rafaqz opened this issue Mar 21, 2021 · 0 comments
Open

Iterations #136

rafaqz opened this issue Mar 21, 2021 · 0 comments

Comments

@rafaqz
Copy link
Member

rafaqz commented Mar 21, 2021

Some models with macro scale feedbacks need to iterate over each timestep multiple times to hone in on macro variables like market demand. This could be done with an Iterate{G}(f, rule/s) wrapper where f is a function of the grid/s G and the current rule object, returning an updated rule and true/false. When it returns true, the iteration is used as the simulation frame for that timestep, otherwise it is repeated after, another function that returns the rule with updated parameters.

See https://link.springer.com/content/pdf/10.1007/s00267-002-2630-x.pdf for an example of this approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant