Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,314 changes: 3,314 additions & 0 deletions HARK/ConsumptionSavingX/ConsAggShockModel.py

Large diffs are not rendered by default.

1,468 changes: 1,468 additions & 0 deletions HARK/ConsumptionSavingX/ConsBequestModel.py

Large diffs are not rendered by default.

1,382 changes: 1,382 additions & 0 deletions HARK/ConsumptionSavingX/ConsGenIncProcessModel.py

Large diffs are not rendered by default.

3,138 changes: 3,138 additions & 0 deletions HARK/ConsumptionSavingX/ConsIndShockModel.py

Large diffs are not rendered by default.

1,313 changes: 1,313 additions & 0 deletions HARK/ConsumptionSavingX/ConsIndShockModelFast.py

Large diffs are not rendered by default.

1,427 changes: 1,427 additions & 0 deletions HARK/ConsumptionSavingX/ConsLabeledModel.py

Large diffs are not rendered by default.

928 changes: 928 additions & 0 deletions HARK/ConsumptionSavingX/ConsLaborModel.py

Large diffs are not rendered by default.

1,151 changes: 1,151 additions & 0 deletions HARK/ConsumptionSavingX/ConsMarkovModel.py

Large diffs are not rendered by default.

1,564 changes: 1,564 additions & 0 deletions HARK/ConsumptionSavingX/ConsMedModel.py

Large diffs are not rendered by default.

806 changes: 806 additions & 0 deletions HARK/ConsumptionSavingX/ConsNewKeynesianModel.py

Large diffs are not rendered by default.

1,349 changes: 1,349 additions & 0 deletions HARK/ConsumptionSavingX/ConsPortfolioModel.py

Large diffs are not rendered by default.

1,255 changes: 1,255 additions & 0 deletions HARK/ConsumptionSavingX/ConsPrefShockModel.py

Large diffs are not rendered by default.

483 changes: 483 additions & 0 deletions HARK/ConsumptionSavingX/ConsRepAgentModel.py

Large diffs are not rendered by default.

2,211 changes: 2,211 additions & 0 deletions HARK/ConsumptionSavingX/ConsRiskyAssetModel.py

Large diffs are not rendered by default.

2,067 changes: 2,067 additions & 0 deletions HARK/ConsumptionSavingX/ConsRiskyContribModel.py

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions HARK/ConsumptionSavingX/ConsSequentialPortfolioModel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"""
This file has one agent type that solves the portfolio choice problem in a slightly
different way. It imports from legacy OO solver code as well as the portfolio model.
"""

from HARK import make_one_period_oo_solver
from HARK.ConsumptionSaving.ConsPortfolioModel import (
PortfolioConsumerType,
init_portfolio,
)
from HARK.ConsumptionSaving.LegacyOOsolvers import ConsSequentialPortfolioSolver


class SequentialPortfolioConsumerType(PortfolioConsumerType):
def __init__(self, verbose=False, quiet=False, **kwds):
params = init_portfolio.copy()
params.update(kwds)
kwds = params

# Initialize a basic consumer type
PortfolioConsumerType.__init__(self, verbose=verbose, quiet=quiet, **kwds)

# Set the solver for the portfolio model, and update various constructed attributes
self.solve_one_period = make_one_period_oo_solver(ConsSequentialPortfolioSolver)
Loading
Loading