Skip to content

Commit

Permalink
change TractableBufferstockModel to use functional simulation test, see
Browse files Browse the repository at this point in the history
  • Loading branch information
sbenthall committed May 31, 2022
1 parent ea73795 commit 1f67d65
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def test_simulation(self):
self.tct.aLvlInitMean = 0.0 # Mean of log initial assets for new agents
self.tct.aLvlInitStd = 1.0 # stdev of log initial assets for new agents
self.tct.T_cycle = 1
self.tct.track_vars += ["mLvl"]
self.tct.track_vars += ["mLvl", "cLvlNow", "aLvl"]
self.tct.initialize_sim()
self.tct.simulate()

self.assertAlmostEqual(self.tct.history["mLvl"][15][0], 5.820630251772332)
self.assertAlmostEqual(self.tct.history["mLvl"][15][0] - self.tct.history["cLvlNow"][15][0], self.tct.history["aLvl"][15][0] )

0 comments on commit 1f67d65

Please sign in to comment.