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

A Solver class allowing for inspection #856

Closed
sbenthall opened this issue Oct 22, 2020 · 2 comments
Closed

A Solver class allowing for inspection #856

sbenthall opened this issue Oct 22, 2020 · 2 comments
Assignees
Labels
Abstract Stages Design Tag: 1.0 About the v1 release of HARK.
Milestone

Comments

@sbenthall
Copy link
Contributor

The Solver methods currently do not subclass a common class.

If there were such a class, it would be easier to have boilerplate methods for inspecting them, including:

  • reporting what the control variables being solved are
  • relevant state
  • equations useful for solving (such as an arbitrage equation)

Then the Solver subclasses could take arguments from the model definition when initialized.

@sbenthall sbenthall added this to the 1.0.0 milestone Oct 22, 2020
@sbenthall sbenthall self-assigned this Dec 8, 2020
@sbenthall
Copy link
Contributor Author

@mnwhite I was thinking about taking a crack at this and then reviewing the issue was reminded that you are interested in removing "object oriented solvers" in favor of solver methods.

So before picking at this I wanted to check in.

Of course, the solver could be a callable object, maybe being the best of both worlds.

The main issue I'm seeing is that we would like a 'magic solver' that is able to take in functions defined in a model specification. There currently isn't an architecture that supports that.

I wonder if you've given any thought to, if you could do it all over again, how you would design solvers for HARK.

@sbenthall sbenthall modified the milestones: 1.0.0, 1.x.y Dec 10, 2020
@sbenthall sbenthall modified the milestones: 1.x.y, 1.1.0 Jan 23, 2021
@alanlujan91 alanlujan91 self-assigned this Aug 19, 2022
@sbenthall sbenthall removed their assignment Jun 3, 2024
@mnwhite mnwhite added the Tag: 1.0 About the v1 release of HARK. label Jul 3, 2024
@mnwhite
Copy link
Contributor

mnwhite commented Jul 3, 2024

I'm archiving this and tagging it as part of the HARK 1 roadmap; no real discussion happened here. We're actively working on having model data be tied to the solver itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Abstract Stages Design Tag: 1.0 About the v1 release of HARK.
Projects
Status: Done
Development

No branches or pull requests

3 participants