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

adding test for default solution to PerfForesightConsumerType #506

Merged
merged 31 commits into from
Feb 26, 2020

Conversation

sbenthall
Copy link
Contributor

See #504

This PR tests the results of the solution to a PerfForesightConsumerType problem, using the default parameters.

It adds the test to the unit tests that are run by Travis CI.

One thing that is not ideal about this test is that it is taking the output it is testing against from the result of an execution of the existing code.

That means that this test will fire if the underlying code changes in a way that changes to solution value.

But it could be possible to do better, especially in this particular case, in which the solution has a closed form in terms of the agent model parameters.

llorracc and others added 26 commits February 10, 2020 10:44
…itions

Final updates for checkConditions before turnover to Seb and Mridul
adding tests for IndShockConsumerType class
Functionalize out each condition from checkConditions
adding test for IndShockConsumerType.getShocks()
(cherry picked from commit 90d566d)
…con-ark#540)

* url -> self.url in checkConditions print logic. fixed econ-ark#539

* further fixes to bugs introduced in checkConditions refactor
@sbenthall sbenthall merged commit 1c81bff into econ-ark:master Feb 26, 2020
@mnwhite
Copy link
Contributor

mnwhite commented Feb 26, 2020 via email

@llorracc
Copy link
Collaborator

Definitely this is a case where the closed form solution should be used.

Actually, it's always seemed to me that we should simply use the closed form solution directly as the output of this; really the only advantage of solving it numerically is precisely as a simple test of whether there are bugs in our numerical algorithms.

@mnwhite
Copy link
Contributor

mnwhite commented Feb 27, 2020 via email

@llorracc
Copy link
Collaborator

llorracc commented Feb 27, 2020 via email

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

Successfully merging this pull request may close these issues.

3 participants