EconForge / dolo.py

Economic modelling in python
BSD 2-Clause "Simplified" License
98 stars 72 forks source link

ENH: return solution objects rather than decision rule #140

Closed albop closed 5 years ago

albop commented 5 years ago

Currently, all algorithms return a decision rule, that is essentially a function. I would like to move to a default, where they return a result object, which would contain convergence information and other diagnostic results. Plan would be to start by adding an option details=False to all solution algorithms and to switch it to True in the next major version. The fields of the solution object should match the julia ones as long as they are reasonable. Algos could also be updated so that they would accept a solution object as initial guess.