Next Article in Journal
Generalized Product-Form Solutions for Stationary and Non-Stationary Queuing Networks with Application to Maritime and Railway Transport
Previous Article in Journal
A Special Family of Triangles
Previous Article in Special Issue
CIRGNN: Leveraging Cross-Chart Relationships with a Graph Neural Network for Stock Price Prediction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimal Job-Switching and Portfolio Decisions with a Mandatory Retirement Date

1
School of Natural Sciences, Seoul National University of Science and Technology, Seoul 01811, Republic of Korea
2
Department of Applied Mathematics, Kyung Hee University, Yongin 17104, Republic of Korea
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Mathematics 2025, 13(17), 2809; https://doi.org/10.3390/math13172809
Submission received: 2 August 2025 / Revised: 24 August 2025 / Accepted: 28 August 2025 / Published: 1 September 2025
(This article belongs to the Special Issue Mathematical Modelling in Financial Economics)

Abstract

We study a finite-horizon optimal job-switching and portfolio allocation problem where an agent faces a mandatory retirement date. The agent can freely switch between two jobs with differing levels of income and leisure. The financial market consists of a risk-free asset and a risky asset, with the agent making dynamic consumption, investment, and job-switching decisions to maximize lifetime utility. The utility function follows a Cobb–Douglas form, incorporating both consumption and leisure preferences. Using a dual-martingale approach, we derive the optimal policies and establish a verification theorem confirming their optimality. Our results provide insights into the trade-offs between labor income and leisure over a finite career horizon and their implications for retirement planning and investment behavior.

1. Introduction

The COVID-19 pandemic has profoundly reshaped global labor markets, accelerating the adoption of flexible work arrangements such as remote work, part-time schedules, and non-linear career paths. These structural changes have heightened the importance of accounting for labor flexibility in individual financial planning.
In this new environment, it has become essential for individuals to manage their consumption, investment, and labor supply decisions in a unified manner that reflects both financial market risks and the evolving nature of work. Integrating labor flexibility into personal financial planning allows agents to better capture the intertemporal trade-offs between income, leisure, and risk.
The literature on optimal consumption and investment provides a strong foundation for such analysis. The classical Merton problem [1,2] pioneered the continuous-time framework for optimal portfolio allocation. Since then, numerous extensions have been developed, including those incorporating labor income [3], habit formation [4], and stochastic interest rates [5]. Recent works have further examined retirement decisions and their interplay with consumption and investment strategies [6,7].
Moreover, a growing body of research explores how labor market dynamics affect financial decision-making. This includes studies on endogenous labor supply, job mobility, and income risk, often highlighting the role of leisure preferences and job-switching behavior [8,9,10,11,12,13,14]. These contributions emphasize the need for dynamic models that endogenize labor choice alongside consumption and portfolio decisions.
While the existing literature has offered valuable insights, most studies addressing job-switching and labor flexibility adopt an infinite-horizon framework [8,15]. These models often assume stationary preferences and disregard lifecycle features such as mandatory retirement, which are crucial in shaping realistic behavior.
In this paper, we develop a finite-horizon model of optimal consumption, portfolio allocation, and job-switching in the presence of a fixed mandatory retirement date. The agent can switch freely between two jobs before retirement: one offering higher income and less leisure, and the other offering lower income and greater leisure. After retirement, labor income ceases and full leisure is attained. The agent derives utility from both consumption and leisure, following a Cobb–Douglas functional form.
Our methodological innovation lies in formulating this problem as a mixed control and switching problem with a finite horizon, and solving it via a dual-martingale approach. This technique, widely used in consumption–investment problems, allows us to derive semi-closed-form expressions for the dual value function and optimal controls. The finite horizon and non-stationarity of job choice introduce new technical challenges, which we address by combining duality methods with PDE characterization.
Our results have rich economic implications. We show that agents with low wealth optimally choose a high-income job to support consumption, while those with higher wealth transition to a leisure-rich job to increase utility from non-market time. The switching boundary increases over time, capturing the rising marginal utility of leisure as retirement nears. Compared to fixed-job benchmarks, the job-switching option leads to higher lifetime utility and more flexible consumption–investment profiles. Our model thus quantifies the welfare value of labor flexibility across the lifecycle in a tractable continuous-time framework.
The remainder of this paper is organized as follows. In Section 2, we present the model setup, including the financial market, job-switching structure, and agent’s preferences. Section 3 reformulates the optimization problem using a dual approach and characterizes the dual value function, and also provides analytical solutions for the dual problem and derives the optimal strategies in feedback form. In Section 4, we present numerical illustrations to examine the properties of optimal switching, consumption, and portfolio policies, as well as their economic implications. Section 5 concludes the paper and discusses potential avenues for future research.
The Contributions of this Study in Relation to the Literature. Building on the extensive literature on lifecycle portfolio choice and job-switching e.g., [1,2,3,6,7,8,9,15], we aim to highlight a specific gap that has not been fully addressed. Most existing models operate in an infinite-horizon or stationary environment, where the switching boundary remains constant and retirement considerations are absent. In contrast, our work introduces a finite-horizon setting with a mandatory retirement boundary. This finite horizon naturally generates time dependence in the switching threshold, leading to monotonicity properties that can be formally established. Our analysis further reveals how the approach of retirement alters the trade-off between labor income and leisure, resulting in a wealth boundary that shifts predictably over time. By quantifying these effects, we provide new insights into how a finite career length modifies pre-retirement consumption, portfolio, and job-switching policies.
In addition to these classical and well-established frameworks, several recent studies have further advanced the literature on job-switching and retirement decisions. Shim and Jeon [16] investigate a costly reversible job-switching option in an infinite-horizon consumption and investment framework, highlighting how switching costs fundamentally alter labor supply and portfolio choice. Jeon and Park [17] extend this analysis by incorporating an irreversible retirement option, thereby characterizing the joint impact of job-switching and retirement flexibility on consumption and investment behavior. More recently, An et al. [18] examined optimal portfolio and retirement decisions with costly job-switching in a finite-horizon setting, deriving explicit characterizations of the relevant switching and retirement boundaries. By incorporating these recent contributions into our discussion, we broaden the scope of the related literature and highlight how our finite-horizon model with a mandatory retirement boundary complements and extends these new developments.

2. Model

We consider the consumption, investment, and job-switching decisions of an agent (investor) who has a constant mandatory retirement date T > 0 . We assume that there exist two financial assets trading in the economy, a riskless asset and a risky asset, whose prices at t are denoted by S 0 , t and S 1 , t , respectively. The asset prices satisfy the dynamics
d S 0 , t S 0 , t = r d t and d S 1 , t S 1 , t = μ d t + σ d B t ,
where r > 0 is the constant risk-free rate, μ r is the constant drift of the risky asset price, σ > 0 is the constant volatility of the risky asset returns, and B is a standard Brownian motion on ( Ω , F , P ) . We will denote the augmented filtration generated by the Brownian motion B as F = { F t } t 0 .
We assume that the agent can freely switch between two jobs (or job categories) until the mandatory retirement age T. Let these two jobs be denoted by ζ 0 and ζ 1 , and define the process η t to represent the agent’s job status at time t. That is, η t takes values in { ζ 0 , ζ 1 } for all t [ 0 , T ] .
The labor income earned in each job ζ i (for i = 0 , 1 ) is denoted by δ i , and the leisure time available in each job (understood as the maximum possible leisure time minus the working hours) is given by L i . We assume that δ 0 > δ 1 and L 0 < L 1 , implying that the agent receives a higher labor income in job ζ 0 than in job ζ 1 . However, since job ζ 0 requires more working hours, the agent enjoys less leisure time compared to job ζ 1 .
After the mandatory retirement age, the agent enjoys the maximum possible leisure, denoted by L ¯ , but no longer receives any labor income. For convenience, we normalize L ¯ = 1 . Consequently, it follows that 0 < L 0 < L 1 < 1 .
Let c t and π t denote the agent’s consumption rate and the dollar amount invested in the risky asset at time t [ 0 , T ] , respectively. Given the strategy ( c , π , η ) and an initial wealth of x, the dynamics of the agent’s wealth X c , π , η are given by the following equation for t [ 0 , T ] :
d X t c , π , η = [ r X t c , π , η + ( μ r ) π t c t + δ 0 1 { η t = ζ 0 } + δ 1 1 { η t = ζ 1 } ] d t + σ π t d B t with X 0 c , π , η = x .
We assume that the agent’s utility function is a function of consumption c t and leisure l t , taking the following Cobb–Douglas form:
u ( c t , l t ) = 1 α ( c t α l t 1 α ) 1 γ 1 γ = c t 1 γ 1 l t γ 1 γ 1 γ 1 with γ 1 : = 1 α ( 1 γ ) ,
where α ( 0 , 1 ) represents the weight of consumption, and γ ( 0 , 1 ) ( 1 , ) is the coefficient of constant relative risk aversion (CRRA).
Remark 1.
The multiplicative factor 1 / α in the utility function is introduced for normalization purposes, ensuring that the marginal utility with respect to consumption has a convenient closed form. This facilitates the dual formulation and preserves homotheticity in ( c , l ) . When γ 1 , the CRRA utility converges to the Cobb–Douglas log-utility form:
lim γ 1 u ( c , l ) = 1 α log c + 1 α α log l ,
which retains the separable logarithmic structure in consumption and leisure.
For the utility to be well-defined when L ( 0 , 1 ) , it is required that α ( 0 , 1 ) and γ ( 0 , 1 ) ( 1 , ) . These restrictions ensure strict positivity of both c t and l t , and that u remains finite for all admissible strategies.
Under these circumstances, the agent’s objective is to choose the optimal consumption c t , portfolio π t , and job strategy η t to maximize the following expected utility:
U ( x ; c , π , η ) : = E 0 T e β t u ( c t , L 0 ) 1 { η t = ζ 0 } + u ( c t , L 1 ) 1 { η t = ζ 1 } d t + T e β t u ( c t , 1 ) d t ,
where β > 0 is the agent’s subjective discount rate.
Finally, we can define the agent’s utility maximization problem as follows:
Problem 1.
Let x > δ 0 ( 1 e r T ) / r be given. The agent faces the following maximization problem:
V ( x ) : = sup ( c , π , η ) A ( x ) U ( x ; c , π , η ) ,
where A ( x ) is the set of all admissible strategies ( c , π , η ) satisfying the following conditions:
(i) 
  For all t [ 0 , T ] , the consumption c t 0 and the portfolio allocation π t are F -progressively measurable, and it is almost certain that 0 T ( c t + π t 2 ) d t < .
(ii) 
 The job choice process η t is an F -adapted process taking values in { ζ 0 , ζ 1 } .
(iii) 
The wealth process X t c , π , η corresponding to ( c , π , η ) satisfies the natural borrowing constraint: for all t [ 0 , T ] ,
X t c , π , η δ 0 ( 1 e r T ) r a . s .
To ensure that the problem is well-defined after the mandatory retirement date, we impose the following assumption:
Assumption 1.
The Merton constant K 1 defined as
K 1 : = r + β r γ 1 + γ 1 1 γ 1 2 θ 2 2
is positive (see Merton [1,2]).

3. Optimization Problem

Derivation Sketch. The dual-martingale method transforms the primal problem with controls ( c , π , η ) into a static maximization over consumption given the stochastic discount factor. The dual variable z (or Ξ ) can be interpreted as a scaled marginal utility of wealth, which provides economic intuition for the role of the dual threshold z R : it corresponds to the point at which the relative utilities of the two jobs balance out in wealth terms. The switching condition emerges from comparing the net labor income of the dual utilities u ˜ 0 and u ˜ 1 , producing this critical dual threshold z R . By solving the dual PDE in closed form, we recover the primal policies via first-order conditions and the martingale representation theorem. This structure allows us to identify the switching boundary x S ( t ) and derive its time dependence analytically.
To approach Problem 1, we employ the dual-martingale method, following Shim and Shin [8]. For this purpose, we consider the stochastic discount factor (SDF) Λ t to be defined as follows:
Λ t : = e ( r + 1 2 θ 2 ) t θ B t with θ : = μ r σ .
By slightly modifying Karatzas and Shreve [19] [Theorem 9.6], we deduce that for any ( c , π , η ) A ( x ) ,
E 0 Λ t c t δ 0 1 { η t = ζ 0 } + δ 1 1 { η t = ζ 1 } 1 0 t T d t x .
Conversely, if there exists an admissible consumption and job strategy ( c , η ) such that
E 0 Λ t c t δ 0 1 { η t = ζ 0 } + δ 1 1 { η t = ζ 1 } 1 { 0 t T } d t = x ,
then there exists a portfolio process π such that ( c , π , η ) A ( x ) with X 0 c , π , η = x .
Based on the budget constraint (7), let us denote the Lagrangian L as
L : = E 0 T e β t u ( c t , L 0 ) 1 { η t = ζ 0 } + u ( c t , L 1 ) 1 { η t = ζ 1 } d t + T e β t u ( c t , 1 ) d t + ξ x E 0 Λ t c t δ 0 1 { η t = ζ 0 } + δ 1 1 { η t = ζ 1 } 1 0 t T d t = E [ 0 T e β t u ( c t , L 0 ) Ξ t ξ c t + Ξ t ξ δ 0 1 { η t = ζ 0 } + u ( c t , L 1 ) Ξ t ξ c t + Ξ t ξ δ 1 1 { η t = ζ 1 } d t + e β T E T e β ( t T ) u ( c t , 1 ) Ξ t ξ c t d t F T ] + ξ x E [ 0 T e β t u ˜ 0 ( Ξ t ξ ) + Ξ t ξ δ 0 1 { η t = ζ 0 } + u ˜ 1 ( Ξ t ξ ) + Ξ t ξ δ 1 1 { η t = ζ 1 } d t + e β T E T e β ( t T ) u ˜ A ( Ξ t ξ ) d t F T ] + ξ x ,
where ξ > 0 is the initial Lagrangian multiplier for the constraint (7), Ξ t ξ : = ξ e β t Λ t , and
u ˜ i ( ξ ) : = sup c 0 u ( c , L i ) y c = γ 1 1 γ 1 L i γ 1 γ γ 1 ξ 1 γ 1 γ 1 , i = 0 , 1 , u ˜ A ( ξ ) : = sup c 0 u ( c , 1 ) y c = γ 1 1 γ 1 ξ 1 γ 1 γ 1 .
Let us denote P A ( ξ ) as
P A ( ξ ) : = E 0 e β t u ˜ A ( Ξ t ξ ) d t .
Note that
d Ξ t ξ Ξ t ξ = ( β r ) d t θ d B t and Ξ 0 ξ = ξ .
Then, the Markov property for Ξ ξ implies that
P A ( Ξ T ξ ) = E T e β ( t T ) u ˜ A ( Ξ t ξ ) d t F T .
Through direct computation, we can easily determine that
P A ( ξ ) = γ 1 1 γ 1 ξ 1 γ 1 γ 1 K 1 ,
where we use the fact that K 1 > 0 from Assumption 1.
Furthermore, it is clear that
u ˜ 0 ( ξ ) + ξ δ 0 u ˜ 1 ( ξ ) + ξ δ 1 for 0 < y < z R , u ˜ 0 ( ξ ) + ξ δ 0 u ˜ 1 ( ξ ) + ξ δ 1 for y z R ,
where z R is defined as
z R : = δ 0 δ 1 γ 1 1 γ 1 ( L 1 γ 1 γ γ 1 L 0 γ 1 γ γ 1 ) γ 1 .
In sum, we determine that
L E [ 0 T e β t u ˜ 0 ( Ξ t ξ ) + Ξ t ξ δ 0 1 { Ξ t ξ z R } + u ˜ 1 ( Ξ t ξ ) + Ξ t ξ δ 1 1 { Ξ t ξ z R } d t + e β T P A ( Ξ T ξ ) ] + ξ x .
The above inequality holds as an equality only if
c t = c ^ ( Ξ t ξ ) for t [ 0 , T ) , c ^ A ( Ξ t ξ ) for t [ T , ) , and η t = η ^ ( Ξ t ξ ) ,
where
c ^ ( ξ ) : = L 0 γ 1 γ γ 1 ξ 1 γ 1 for ξ z R , L 1 γ 1 γ γ 1 ξ 1 γ 1 for 0 < ξ < z R , c ^ A ( ξ ) : = ξ 1 γ 1 , and η ^ ( ξ ) : = ζ 0 for ξ z R , ζ 1 for 0 < ξ < z R .
If we define the dual value function P ( ξ ) ,
P ( ξ ) : = E [ 0 T e β t u ˜ 0 ( Ξ t ξ ) + Ξ t ξ δ 0 1 { Ξ t ξ z R } + u ˜ 1 ( Ξ t ξ ) + Ξ t ξ δ 1 1 { Ξ t ξ z R } d t + e β T P A ( Ξ T ξ ) ] ,
then we deduce the weak duality as follows:
V ( x ) inf ξ > 0 P ( ξ ) + ξ x .
Our goal is to verify whether the above inequality in (13) holds as an equality.
Let us consider the following t-version of the dual value function P ( t , ξ ) :
P ( t , ξ ) : = E [ t T e β ( s t ) u ˜ 0 ( Ξ s t , ξ ) + Ξ s t , ξ δ 0 1 { Ξ s t , ξ z R } + u ˜ 1 ( Ξ s t , ξ ) + Ξ s t , ξ δ 1 1 { Ξ s t , ξ z R } d s + e β ( T t ) P A ( Ξ T t , ξ ) F t ] ,
where
Ξ s t , ξ : = ξ e β ( s t ) Λ s Λ t for s t .
Clearly,
P ( ξ ) = P ( 0 , ξ ) .
Lemma 1.
The t-version of the dual value function P ( t , ξ ) is expressed as
P ( t , ξ ) = γ 1 1 γ 1 L 0 γ 1 γ γ 1 ξ 1 γ 1 γ 1 t T e K 1 ( s t ) N Υ s t , ξ z R , 1 γ 1 γ 1 d s + ξ δ 0 t T e r ( s t ) N Υ s t , ξ z R , 1 d s + γ 1 1 γ 1 L 1 γ 1 γ γ 1 ξ 1 γ 1 γ 1 t T e K 1 ( s t ) N Υ s t , ξ z R , 1 γ 1 γ 1 d s + ξ δ 1 t T e r ( s t ) N Υ s t , ξ z R , 1 d s + e K 1 ( T t ) γ 1 1 γ 1 ξ 1 γ 1 γ 1 K 1 ,
where N ( · ) is a standard normal distribution function, and
Υ ( t , ξ , κ ) : = log ξ + ( β r + κ θ 2 1 2 θ 2 ) t θ t
Proof. 
To obtain the explicit form of P ( t , ξ ) , we first investigate the following expectations: For any κ R ,
E Ξ s t , ξ κ 1 { Ξ s t , ξ > z R } F t and E Ξ s t , ξ κ 1 { Ξ s t , ξ z R } F t .
Note that
Ξ s t , ξ κ = ξ κ e ( β r 1 2 θ 2 ) κ ( s t ) θ κ ( B s B t ) = ξ κ e ( ( β r ) κ + 1 2 κ ( κ 1 ) θ 2 ) ( s t ) e 1 2 ( θ κ ) 2 ( s t ) κ θ ( B s B t ) .
Let us denote an equivalent martingale measure Q κ as
d Q κ d P = e 1 2 ( θ κ ) 2 s κ θ B s
so that B t Q κ : = B t + θ κ t for t [ 0 , s ] is a standard Brownian motion under the measure Q κ .
Thus, under the measure Q κ , the dynamics of Ξ s t , ξ follow
d Ξ s t , ξ = ( β r + κ θ 2 ) Ξ s t , ξ d t θ Ξ s t , ξ d B t .
Then, Girsanov’s theorem implies that
E Ξ s t , ξ κ 1 { Ξ s t , ξ > z R } F t = ξ κ e ( ( β r ) κ + 1 2 κ ( κ 1 ) θ 2 ) ( s t ) E Q κ 1 { Ξ s t , ξ > z R } F t = ξ κ e ( ( β r ) κ + 1 2 κ ( κ 1 ) θ 2 ) ( s t ) Q κ Ξ s t , ξ > z R F t = ξ κ e ( ( β r ) κ + 1 2 κ ( κ 1 ) θ 2 ) ( s t ) N Υ ( s t , ξ z R , κ ) .
Similarly,
E Ξ s t , ξ κ 1 { Ξ s t , ξ z R } F t = ξ κ e ( ( β r ) κ + 1 2 κ ( κ 1 ) θ 2 ) ( s t ) N Υ ( s t , ξ z R , κ ) .
These indicate that
E Ξ s t , ξ κ F t = E Ξ s t , ξ κ 1 { Ξ s t , ξ > z R } F t + E Ξ s t , ξ κ 1 { Ξ s t , ξ z R } F t = ξ κ e ( ( β r ) κ + 1 2 κ ( κ 1 ) θ 2 ) ( s t ) .
Using (17)–(19), we can directly obtain the desired result. □
Lemma 2.
The following equality holds:
ξ P ( t , ξ ) = E [ t T Λ s Λ t c ^ Ξ s t , ξ ( δ 0 1 { Ξ s t , ξ > z R } + δ 1 1 { Ξ s t , ξ z R } ) d s + T Λ s Λ t c ^ A ( Ξ s t , ξ ) d s F t ] = L 0 γ 1 γ γ 1 ξ 1 γ 1 t T e K 1 ( s t ) N Υ s t , ξ z R , 1 γ 1 γ 1 d s δ 0 t T e r ( s t ) N Υ s t , ξ z R , 1 d s + L 1 γ 1 γ γ 1 ξ 1 γ 1 t T e K 1 ( s t ) N Υ s t , ξ z R , 1 γ 1 γ 1 d s δ 1 t T e r ( s t ) N Υ s t , ξ z R , 1 d s + e r ( T t ) K 1 ξ 1 γ 1 .
Proof. 
For a sufficiently small ϵ > 0 , let us denote
ξ ± ϵ : = ξ ± ϵ > 0 .
Note that
P ( t , ξ ± ϵ ) = E [ t T e β ( s t ) ( u ˜ 0 ( Ξ s t , ξ ± ϵ ) + Ξ s t , ξ ± ϵ δ 0 1 { Ξ s t , ξ ± ϵ z R } + u ˜ 1 ( Ξ s t , ξ ± ϵ ) + Ξ s t , ξ ± ϵ δ 1 1 { Ξ s t , ξ ± ϵ z R } ) d s + e β ( T t ) P A ( Ξ T t , ξ ± ϵ ) F t ] E [ t T e β ( s t ) ( u ˜ 0 ( Ξ s t , ξ ± ϵ ) + Ξ s t , ξ ± ϵ δ 0 1 { Ξ s t , ξ z R } + u ˜ 1 ( Ξ s t , ξ ± ϵ ) + Ξ s t , ξ ± ϵ δ 1 1 { Ξ s t , ξ z R } ) d s + e β ( T t ) P A ( Ξ T t , ξ ± ϵ ) F t ] .
Then, we deduce that
P ( t , y ± ϵ ) P ( t , y ) ϵ E [ t T e β ( s t ) ( u ˜ 0 ( Ξ s t , ξ ± ϵ ) u ˜ 0 ( Ξ s t , ξ ) ϵ + e β ( s t ) Λ s Λ t δ 0 1 { Ξ s t , ξ z R } + u ˜ 1 ( Ξ s t , ξ ± ϵ ) u ˜ 1 ( Ξ s t , ξ ) ϵ + e β ( s t ) Λ s Λ t δ 1 1 { Ξ s t , ξ z R } ) d s + e β ( T t ) P A ( Ξ T t , ξ ± ϵ ) P A ( Ξ T t , ξ ) ϵ F t ] .
Letting ϵ equal 0 ,
ξ P ( t , ξ ) = E [ t T Λ s Λ t c ^ Ξ s t , ξ δ 0 1 { Ξ s t , ξ > z R } + δ 1 1 { Ξ s t , ξ z R } d s + T Λ s Λ t c ^ A ( Ξ s t , ξ ) d s F t ] ,
where we use the fact that
P A ( ξ ) = 1 K 1 ξ 1 γ 1 = E T Λ s Λ T c ^ A ( Ξ s t , ξ ) d s F T .
Note that
ξ ξ P ( t , ξ ) = E [ t T e β ( s t ) Ξ s t , ξ c ^ Ξ s t , ξ δ 0 1 { Ξ s t , ξ > z R } + δ 1 1 { Ξ s t , ξ z R } d s + e β ( T t ) Ξ T t , ξ P A ( Ξ T ξ , t ) F t ] .
Thus, it follows from (17) and (18) that
ξ ξ P ( t , ξ ) = L 0 γ 1 γ γ 1 ξ 1 γ 1 γ 1 t T e K 1 ( s t ) N Υ s t , ξ z R , 1 γ 1 γ 1 d s δ 0 ξ t T e r ( s t ) N Υ s t , ξ z R , 1 d s + L 1 γ 1 γ γ 1 ξ 1 γ 1 γ 1 t T e K 1 ( s t ) N Υ s t , ξ z R , 1 γ 1 γ 1 d s δ 1 ξ t T e r ( s t ) N Υ s t , ξ z R , 1 d s + e r ( T t ) K 1 ξ 1 γ 1 γ 1 .
Thus, we obtain the desired result. □
Lemma 3.
P ( t , ξ ) is strictly convex in ξ > 0 , and
lim ξ 0 + ξ P ( t , ξ ) = and lim ξ ξ P ( t , ξ ) = 1 e r ( T t ) r δ 0 .
Proof. 
Let us temporarily denote f ( ξ ) as
f ( ξ ) : = f 0 ( ξ ) 1 { ξ > z R } + f 1 ( ξ ) 1 { 0 < ξ z R } ,
where
f 0 ( ξ ) : = u ˜ 0 ( ξ ) + δ 0 ξ , f 1 ( ξ ) : = u ˜ 1 ( ξ ) + δ 1 ξ .
It is clear that
f 0 ( ξ ) > 0 and f 1 ( ξ ) > 0 for all ξ > 0 .
Moreover, we can easily confirm that
lim ξ z R + f ( ξ ) = f 0 ( z R ) > f 1 ( z R ) = lim ξ z R f 1 ( ξ ) .
Thus, f ( ξ ) is strictly convex for ξ > 0 . Since P A ( ξ ) is also strictly convex for ξ > 0 , it follows that P ( t , ξ ) is strictly convex for ξ > 0 .
Based on the explicit form of ξ P ( t , ξ ) in (20), it is clear that
lim ξ 0 + ξ P ( t , ξ ) = and lim ξ ξ P ( t , ξ ) = 1 e r ( T t ) r δ 0 .
Now, we are ready to state our main theorem.
Theorem 1.
Let x > δ 0 ( 1 e r ( T t ) ) / r be given. Then V ( x ) and P ( ξ ) satisfy the following duality theorem:
V ( x ) = inf ξ > 0 P ( ξ ) + ξ x = P ( ξ ) + ξ x ,
where ξ > 0 is a unique solution such that x = P ( ξ ) .
Moreover, the optimal consumption c , portfolio π , and job η are given by
c t = c ^ ( Ξ t ) for t [ 0 , T ) , c ^ A ( Ξ t ) for t [ T , ) , η t = η ^ ( Ξ t ) , and π t = θ σ Ξ t ξ ξ P ( t , Ξ t ) ,
where Ξ t = ξ e β t Λ t .
Proof. 
For a given x > δ 0 ( 1 e r ( T t ) ) / r , according to Lemma 3, there exists a unique ξ such that
x = P ( ξ ) = ξ P ( 0 , ξ ) .
Let c , η , and Ξ be as stated in this theorem.
Thus, it follows from (20) that
x = E 0 Λ t c t δ 0 1 { η t = ζ 0 } + δ 1 1 { η t = ζ 1 } 1 { 0 t T } d t .
Thus, there exists a portfolio process π t such that ( c , π , η ) A ( x ) .
This indicates that
x ξ = ξ E 0 T Λ t c ^ Ξ t δ 0 1 { Ξ t > z R } + δ 1 1 { Ξ t z R } d s + T Λ t c ^ A ( Ξ t ) d s = U ( x ; c , π , η ) P ( ξ ) .
That is,
inf ξ > 0 P ( ξ ) + ξ x V ( x ) U ( x ; c , π , η ) = P ( ξ ) + x ξ inf ξ > 0 P ( ξ ) + ξ x .
Thus, we can conclude that
V ( x ) = U ( x ; c , π , η )
and ( c , π , η ) A ( x ) is optimal.
By applying Itô’s lemma to X t = X t c , π , η , we can determine that
π t = θ σ Ξ t ξ ξ P ( t , Ξ t ) .
Since π t = θ σ Ξ t ξ ξ P ( t , Ξ t ) , it follows from Lemma 2 that
Π t = Π ( t , Ξ t ) ,
where
Ξ ( t , ξ ) : = θ σ γ L 0 γ 1 γ γ 1 ξ 1 γ 1 t T e K 1 ( s t ) N Υ s t , ξ z R , 1 γ 1 γ 1 d s θ σ L 0 γ 1 γ γ 1 ξ 1 γ 1 t T e K 1 ( s t ) n Υ s t , ξ z R , 1 γ 1 γ 1 d s θ s t + δ 0 t T e r ( s t ) n Υ s t , ξ z R , 1 d s θ s t + θ σ γ L 1 γ 1 γ γ 1 ξ 1 γ 1 t T e K 1 ( s t ) N Υ s t , ξ z R , 1 γ 1 γ 1 d s + θ σ L 0 γ 1 γ γ 1 ξ 1 γ 1 t T e K 1 ( s t ) n Υ s t , ξ z R , 1 γ 1 γ 1 d s θ s t δ 0 t T e r ( s t ) n Υ s t , ξ z R , 1 d s θ s t + 1 K 1 θ σ γ 1 ξ 1 γ 1 ,
where n ( · ) is a standard normal probability density function.
Moreover, according to the one-to-one relationship between the wealth domain and the dual domain, we can define the optimal job-switching boundary x S ( t ) using
x S ( t ) : = ξ P ( t , z R ) .
That is, if wealth X t is sufficiently high that it exceeds the job-switching boundary x S ( t ) , the agent switches to job ζ 1 , which provides more leisure, even though it comes with lower income. Conversely, if wealth X t falls below the job-switching boundary x S ( t ) , the agent gives up leisure and switches to job ζ 0 , which offers higher income.

4. Implications

In this section, we investigate the economic implications of the optimal job-switching, consumption, and portfolio strategies obtained in the previous section by presenting the numerical results.
To this end, we use the following parameters as the baseline:
β = 0.04 , r = 0.02 , μ = 0.08 , σ = 0.2 , L 0 = 0.3 , L 1 = 0.5 , δ 0 = 5 , δ 1 = 3 , γ = 3 , α = 0.5 , T = 30 .
Figure 1 illustrates how the optimal job-switching boundary x S ( t ) depends on the parameters L 1 (leisure level in job ζ 1 ) and δ 1 (labor income in job ζ 1 ). The job-switching boundary x S ( t ) represents the threshold wealth level above which the agent optimally switches to job ζ 1 (the high-leisure, low-income job), and below which the agent prefers job ζ 0 (the low-leisure, high-income job).
Panel (a) shows that an increase in L 1 leads to a lower switching boundary x S ( t ) . Since L 0 is fixed, increasing L 1 is equivalent to increasing the relative leisure gap between the two jobs. From the agent’s perspective, job ζ 1 becomes more attractive not only because of its absolute increase in leisure but also because job ζ 0 becomes relatively less desirable. As a result, the agent is more willing to sacrifice labor income for leisure, and the switching to job ζ 1 occurs at a lower wealth level.
Similarly, Panel (b) indicates that as δ 1 increases, the switching boundary x S ( t ) shifts downward. With fixed δ 0 , a larger δ 1 raises the income from job ζ 1 , thereby reducing the relative income advantage of job ζ 0 . As a result, the incentive to remain in job ζ 0 weakens, and the agent already finds it optimal to switch to job ζ 1 at a lower wealth level. In other words, because job ζ 1 offers higher income when δ 1 is larger, the trade-off between income from job ζ 0 and leisure gain from job ζ 1 is resolved earlier, leading to a lower switching boundary.
The interpretation is symmetric when considering switches from job ζ 1 to job ζ 0 . If the agent’s wealth falls below the boundary x S ( t ) , they optimally switch to job ζ 0 to obtain higher income despite losing leisure. For example, when L 1 increases (or L 0 decreases relatively), job ζ 1 becomes more leisure-rich, so the agent prefers to remain in ζ 1 longer. Conversely, when wealth is low and financial needs dominate, the agent prioritizes labor income and switches to job ζ 0 . This highlights the fundamental trade-off: when wealth is low, income generation becomes the priority; when wealth is high, leisure takes precedence.
Figure 2 illustrates how the optimal consumption policy c t varies with the mandatory retirement horizon T under two different job statuses: (a) the high-income, low-leisure job ζ 0 and (b) the low-income, high-leisure job ζ 1 . In both panels, we observe how the consumption rule depends on current wealth X t and the retirement horizon T.
Panel (a) shows that for job ζ 0 , the optimal consumption c t increases with both current wealth and retirement horizon T. A longer horizon implies more future labor income from the high-income job ζ 0 , which acts as a form of implicit wealth. As a result, the agent feels more financially secure and increases current consumption. This reflects standard intertemporal consumption smoothing behavior: a longer income-generating period reduces the need for precautionary savings, allowing the agent to consume more in the present.
Panel (b) presents similar results for job ζ 1 . Although this job provides lower income, the qualitative pattern remains consistent: consumption increases in both wealth and T. However, the slope is flatter, reflecting the smaller marginal value of additional labor income when income is low. That is, the additional implicit wealth from increasing T is less significant under job ζ 1 , leading to more modest increases in optimal consumption.
Economically, the agent interprets the remaining working period as a buffer against financial risk. When T increases, the present value of future earnings increases, especially in the income-rich job ζ 0 , thereby relaxing the effective budget constraint and increasing consumption. In contrast, with a shorter T, the agent must rely more on current wealth, leading to more conservative consumption.
Figure 3 illustrates how the optimal portfolio allocation π t depends on the mandatory retirement horizon T under two job conditions: (a) the high-income, low-leisure job ζ 0 and (b) the low-income, high-leisure job ζ 1 . In both panels, π t increases with wealth X t , and the length of the planning horizon T has a significant effect on the investment strategy.
Panel (a) shows that under job ζ 0 , a longer retirement horizon T leads to a higher optimal portfolio π t for any given wealth level. This reflects the fact that longer horizons imply a longer stream of labor income, which serves as an implicit buffer against investment risk. As a result, the agent is willing to take on more risk in financial markets, allocating more to the risky asset. This is consistent with the standard lifecycle theory: the presence of future income allows for more aggressive investment when retirement is far away.
Panel (b) presents the case for job ζ 1 , where labor income is lower. Although the same positive relationship between T and π t is observed, the increase in investment is more modest. The lower labor income implies a weaker buffer effect, limiting the extent to which the agent can increase risky asset exposure. Consequently, the overall portfolio level is lower, and the sensitivity to T is diminished compared to the case of ζ 0 .
Figure 4 compares the optimal consumption c t and portfolio allocation π t across three models: (i) our main model with endogenous job-switching, (ii) a fixed-job model where the agent always remains in job ζ 0 , and (iii) another fixed-job model where the agent always remains in job ζ 1 . The vertical blue line denotes the switching boundary x S ( t ) : when wealth exceeds this threshold, the agent optimally switches from the high-income job ζ 0 to the high-leisure job ζ 1 .
In Panel (a), the consumption function under the switching model smoothly transitions between the two fixed-job cases. For X t < x S ( t ) , the agent prefers job ζ 0 due to its higher labor income, and the consumption policy coincides with the ζ 0 -only case. For X t > x S ( t ) , the agent switches to job ζ 1 , where leisure is more valuable, and the consumption level drops toward that of the ζ 1 -only case. This reflects the agent’s marginal utility trade-off: when wealth is low, the marginal utility of income dominates; as wealth rises, the marginal utility of leisure becomes more important, prompting a shift in labor supply.
Panel (b) shows a similar pattern for portfolio strategies. When the agent works in job ζ 0 , the higher labor income serves as a buffer against investment risk. This allows for more aggressive risk-taking, as in standard lifecycle models where human capital effectively increases risk capacity. Once the agent switches to job ζ 1 , with its lower income, this buffer is reduced, and the agent adopts a more conservative investment strategy. The switching model dynamically interpolates between these two extremes, adjusting risk exposure in line with the agent’s labor status and wealth.
From an economic perspective, the switching model relaxes the constraint of fixed labor supply and enables dynamic endogenous adjustment of job choice. This flexibility enhances utility by allowing the agent to respond to changing opportunity costs between income and leisure. Compared to fixed-job models, the switching model delivers higher welfare and more efficient consumption and investment patterns, better reflecting real-world labor flexibility and economic decision-making under uncertainty.

Sensitivity Analysis and Robustness

To assess the robustness of our results, we analyze how the optimal job-switching boundary x S ( t ) changes with key preference and discount parameters (see Figure 5). Panel (a) shows that increasing the risk aversion parameter γ shifts the switching boundary upward, reflecting a stronger preference for stable labor income before retirement. Panel (b) illustrates that a higher consumption weight α shifts the boundary downward, making the leisure-rich job more attractive earlier in working life. Panel (c) indicates that an increase in the discount rate β delays the switch to the high-leisure job by reducing the present value of future leisure. These monotonic patterns hold across a wide range of parameter values, suggesting that our qualitative conclusions are robust to variations in risk preferences, consumption–leisure trade-offs, and time preferences.

5. Concluding Remarks

This study investigates an optimal job-switching and portfolio allocation problem in a finite-horizon setting with a mandatory retirement date. By incorporating a Cobb–Douglas utility function that captures both consumption and leisure preferences, we develop a tractable framework for analyzing how individuals dynamically manage their labor choices and financial decisions over their lifecycle. Leveraging a dual-martingale approach, we obtain semi-closed-form characterizations of the optimal consumption, investment, and job-switching policies, and verify their optimality.
Our analysis highlights the interplay between leisure and income in shaping job-switching behavior, as well as the adjustments in consumption and investment strategies as individuals approach retirement. These results have practical implications for financial planning, particularly in designing retirement strategies that account for labor market flexibility.
Limitations and Future Directions. While assuming a fixed and deterministic retirement date with maximal post-retirement leisure enhances analytical tractability—facilitating semi-closed-form solutions—it abstracts from important real-world features. Retirement timing is often endogenous or stochastic, and post-retirement leisure may be uncertain due to factors such as health shocks, caregiving responsibilities, or part-time work. Extending the framework to incorporate stochastic retirement dates, job-switching costs, or stochastic labor income would enhance economic realism and potentially alter optimal switching boundaries. Alternative preference specifications, such as Epstein–Zin recursive utility or non-Cobb–Douglas formulations for leisure, could provide richer intertemporal substitution patterns and risk–return trade-offs. It is also worth noting that the Cobb–Douglas specification imposes a constant expenditure share between consumption and leisure. While this assumption enhances tractability and delivers clean closed-form solutions, it restricts heterogeneity in labor–consumption trade-offs. Relaxing this feature in future work would allow the model to capture more flexible preference structures. Finally, a quantitative comparison with infinite-horizon benchmarks would help isolate the distinct effects of the finite-horizon structure on optimal policies.

Author Contributions

Conceptualization, J.J.; Methodology, J.J.; Validation, G.K.; Investigation, G.K.; Writing—original draft, J.J.; Writing—review & editing, G.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

This research was supported by Seoul National University of Science and Technology.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Merton, R.C. Lifetime portfolio selection under uncertainty: The continuous-time case. Rev. Econ. Stat. 1969, 51, 247–257. [Google Scholar] [CrossRef]
  2. Merton, R.C. Optimum consumption and portfolio rules in a continuous-time model. J. Econ. Theory 1971, 3, 373–413. [Google Scholar] [CrossRef]
  3. Bodie, Z.; Merton, R.C.; Samuelson, W.F. Labor supply flexibility and portfolio choice in a life cycle model. J. Econ. Dyn. Control 1992, 16, 427–449. [Google Scholar] [CrossRef]
  4. Campbell, J.Y.; Cochrane, J.H. By force of habit: A consumption-based explanation of aggregate stock market behavior. J. Political Econ. 1999, 107, 205–251. [Google Scholar] [CrossRef]
  5. Wachter, J.A. Portfolio and consumption decisions under mean-reverting returns: An exact solution for complete markets. J. Financ. Quant. Anal. 2002, 37, 63–91. [Google Scholar] [CrossRef]
  6. Farhi, E.; Panageas, S. Saving and investing for early retirement: A theoretical analysis. J. Financ. Econ. 2007, 83, 87–121. [Google Scholar] [CrossRef]
  7. Cocco, J.F.; Gomes, F.J.; Maenhout, P.J. Consumption and portfolio choice over the life cycle. Rev. Financ. Stud. 2005, 18, 491–533. [Google Scholar] [CrossRef]
  8. Shim, G.; Shin, Y.H. An optimal job, consumption/leisure, and investment policy. Oper. Res. Lett. 2014, 42, 145–149. [Google Scholar] [CrossRef]
  9. Gomes, F.J.; Kotlikoff, L.J.; Viceira, L.M. Optimal life-cycle investing with flexible labor supply: A welfare analysis of life-cycle funds. Am. Econ. Rev. 2008, 98, 297–303. [Google Scholar] [CrossRef]
  10. Karatzas, I.; Lehoczky, J.P.; Shreve, S. Optimal portfolio and consumption decisions for a small investor on a finite horizon. SIAM J. Control Optim. 2000, 29, 1107–1122. [Google Scholar] [CrossRef]
  11. Viceira, L.M. Optimal portfolio choice for long-horizon investors with nontradable labor income. J. Financ. 2001, 56, 433–470. [Google Scholar] [CrossRef]
  12. Huggett, M.; Ventura, G.; Yaron, A. Sources of lifetime inequality. Am. Econ. Rev. 2011, 101, 2923–2954. [Google Scholar] [CrossRef]
  13. Davis, S.J.; Willen, P. Occupation-level income shocks and asset returns: Their covariance and implications for portfolio choice. J. Monet. Econ. 2001, 48, 465–494. [Google Scholar] [CrossRef]
  14. Guvenen, F. An empirical investigation of labor income processes. Rev. Econ. Dyn. 2009, 12, 58–79. [Google Scholar] [CrossRef]
  15. Shim, G.; Koo, J.; Shin, Y. Reversible job-switching opportunities and portfolio selection. Appl. Math. Optim. 2018, 77, 197–228. [Google Scholar] [CrossRef]
  16. Shim, G.; Jeon, J. Optimal consumption and investment with a costly reversible job-switching option. Math. Methods Oper. Res. 2025, 101, 459–506. [Google Scholar] [CrossRef]
  17. Jeon, J.; Park, K. Optimal job switching and retirement decision. Appl. Math. Comput. 2023, 443, 127777. [Google Scholar] [CrossRef]
  18. An, J.; Jeon, J.; Kim, T. Optimal portfolio and retirement decisions with costly job switching options. Appl. Math. Comput. 2025, 491, 129215. [Google Scholar] [CrossRef]
  19. Karatzas, I.; Shreve, S. Methods of Mathematical Finance; Springer: New York, NY, USA, 1998. [Google Scholar] [CrossRef]
Figure 1. The optimal job-switching boundary x S ( t ) .
Figure 1. The optimal job-switching boundary x S ( t ) .
Mathematics 13 02809 g001
Figure 2. The effect of T on optimal consumption.
Figure 2. The effect of T on optimal consumption.
Mathematics 13 02809 g002
Figure 3. The effect of T on the optimal portfolio.
Figure 3. The effect of T on the optimal portfolio.
Mathematics 13 02809 g003
Figure 4. Comparison between the switching model and the fixed-job cases ( ζ 0 only or ζ 1 only).
Figure 4. Comparison between the switching model and the fixed-job cases ( ζ 0 only or ζ 1 only).
Mathematics 13 02809 g004
Figure 5. Sensitivity of the optimal job-switching boundary x S ( t ) to preference and discount parameters.
Figure 5. Sensitivity of the optimal job-switching boundary x S ( t ) to preference and discount parameters.
Mathematics 13 02809 g005
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Kim, G.; Jeon, J. Optimal Job-Switching and Portfolio Decisions with a Mandatory Retirement Date. Mathematics 2025, 13, 2809. https://doi.org/10.3390/math13172809

AMA Style

Kim G, Jeon J. Optimal Job-Switching and Portfolio Decisions with a Mandatory Retirement Date. Mathematics. 2025; 13(17):2809. https://doi.org/10.3390/math13172809

Chicago/Turabian Style

Kim, Geonwoo, and Junkee Jeon. 2025. "Optimal Job-Switching and Portfolio Decisions with a Mandatory Retirement Date" Mathematics 13, no. 17: 2809. https://doi.org/10.3390/math13172809

APA Style

Kim, G., & Jeon, J. (2025). Optimal Job-Switching and Portfolio Decisions with a Mandatory Retirement Date. Mathematics, 13(17), 2809. https://doi.org/10.3390/math13172809

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop