econ-ark / HARK

Heterogenous Agents Resources & toolKit
Apache License 2.0
328 stars 197 forks source link

Framing and periodicity #798

Closed sbenthall closed 3 months ago

sbenthall commented 4 years ago

The PerfForesightConsumerType has two poststate_vars: aNrmNow and pLvlNow https://github.com/econ-ark/HARK/blob/master/HARK/ConsumptionSaving/ConsIndShockModel.py#L1450

However pLvlNow is set in getStates(): https://github.com/econ-ark/HARK/blob/master/HARK/ConsumptionSaving/ConsIndShockModel.py#L1665

...and not in getPostStates(). Rather, aLvlNow is updated as a poststate in the code: https://github.com/econ-ark/HARK/blob/master/HARK/ConsumptionSaving/ConsIndShockModel.py#L1706

Correcting the poststate_var field to list aLvlNow instead of pLvlNow raises an AttributeError. I guess this is because the class is depending on the automatic initialization of the poststates, to create the attribute.

llorracc commented 3 years ago

Definition of an objective function that should be maximized by the agent. Maybe the category should be "objective" or something like that rather than "optimality". We should consult Pablo on this.

On Tue, Nov 17, 2020 at 6:50 PM Sebastian Benthall notifications@github.com wrote:

Roger that. What does 'optimality' refer to in general? A function to be optimized?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/econ-ark/HARK/issues/798#issuecomment-729283464, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKCK75T7KNHVAHBPFHYFPDSQMD5LANCNFSM4P632Z4A .

--

sbenthall commented 3 years ago

I have another question about the design of frames.

Control variables may be subject to bounds that functions of other state variables.

https://dolo.readthedocs.io/en/latest/model_specification.html#boundaries

In @llorracc 's examples in this thread, which I'm working from, it's not clear where the bounds are specified.

My intuition is:

What I'm unclear about is how a frame-specific constraint would impact the complexity of a frame's solution problem, and whether these constraints are any impediment to the composability of frame solutions in backwards induction.