# Bug in LifeCycleProfiles\_FHorz\_Case1\_PType

**URL:** https://discourse.vfitoolkit.com/t/bug-in-lifecycleprofiles-fhorz-case1-ptype/622
**Category:** Uncategorized
**Created:** [April 1, 2026, 10:47pm UTC](https://discourse.vfitoolkit.com/t/bug-in-lifecycleprofiles-fhorz-case1-ptype/622 "2026-04-01T22:47:50Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![robertdkirkby](https://discourse.vfitoolkit.com/user_avatar/discourse.vfitoolkit.com/robertdkirkby/32/287_2.png) [@robertdkirkby](https://discourse.vfitoolkit.com/u/robertdkirkby)
#### Post date: [April 7, 2026, 1:59am UTC](https://discourse.vfitoolkit.com/t/bug-in-lifecycleprofiles-fhorz-case1-ptype/622/5 "2026-04-07T01:59:36Z")

</div>

I added LifeCycleProfiles and simoptions.conditionalrestrictions to the example in

> [@Semi-exogenous shocks with permanent types](https://discourse.vfitoolkit.com/t/semi-exogenous-shocks-with-permanent-types/609/13):
>
> I’m done with the semi-exogenous states for permanent types. You must set up vfoptions.semiz\_grid, and then one of vfoptions.SemiExoShockFn or vfoptions.pi\_semiz. You can include age and ptype as dimensions of semiz\_grid and pi\_semiz, or not as you wish. Dependence on ptype can be done as a (the last) dimension, or as fieldnames. Here is the code that I was checking all the combos. % Age % One endogenous variable: assets % One stochastic exogenous variables: income shock J=10; % Ages 1 to 1…

works just fine there.

---

_[View the full topic](https://discourse.vfitoolkit.com/t/bug-in-lifecycleprofiles-fhorz-case1-ptype/622)._
