We consider the following m states model without labor as in 0827:
![]()
.
.
.
![]()
where
![]()
![]()
![]()
.
.
.
![]()
with probability matrix:

We also consider the following m states model with labor as in 0828:
![]()
.
.
.
![]()
where

and
![]()
![]()
.
.
.
![]()
and
![]()
![]()
![]()
.
.
.
![]()
where both technology change parameter and form of leisure utility change according
to state. We implement policy iterations to speed up a little bit.