Inferensys

Glossary

Markov Decision Process (MDP)

A Markov Decision Process (MDP) is a mathematical framework for modeling sequential decision-making under uncertainty, defined by states, actions, transition probabilities, and rewards.
Governance lead reviewing model governance framework on laptop, policy documents visible, executive office setup.
FOUNDATIONAL THEORY

What is a Markov Decision Process (MDP)?

A Markov Decision Process (MDP) is the core mathematical framework for modeling sequential decision-making under uncertainty, forming the theoretical bedrock for reinforcement learning and stochastic optimal control.

A Markov Decision Process (MDP) is a discrete-time stochastic control process that provides a mathematical framework for modeling decision-making in situations where outcomes are partly random and partly under the control of a decision-maker. It is formally defined by the tuple (S, A, P, R, γ), where S is a set of states, A is a set of actions, P is the state transition probability function, R is the reward function, and γ is a discount factor. The defining Markov property stipulates that the future state depends only on the current state and action, not on the history of preceding states.

In the context of Spatial-Temporal Scheduling and Heterogeneous Fleet Orchestration, MDPs model agents navigating dynamic environments. The agent selects an action (e.g., move north), transitions to a new state with some probability, and receives a reward (e.g., for completing a delivery). The objective is to find a policy—a mapping from states to actions—that maximizes the expected cumulative discounted reward. This framework directly underpins Reinforcement Learning (RL) algorithms, which learn optimal policies through interaction, and connects to Model Predictive Control (MPC) for online re-planning.

FOUNDATIONAL FRAMEWORK

Core Components of an MDP

A Markov Decision Process (MDP) provides the mathematical formalism for sequential decision-making under uncertainty. Its core components define the problem an agent must solve to learn an optimal policy.

01

State (S)

A state is a complete description of the environment at a specific time. It encapsulates all information necessary for the agent to make a decision. In fleet orchestration, a state could represent:

  • The position, velocity, and battery level of every robot.
  • The location and status (pending, in-progress, completed) of all active tasks.
  • The current layout of the warehouse, including dynamic obstacles. The set of all possible states is the state space. A key property is the Markov Property, meaning the future state depends only on the current state and action, not the full history.
02

Action (A)

An action is a choice available to the agent that causes a transition from the current state to a new state. The set of valid actions can depend on the current state. For a mobile robot, actions might include:

  • Navigate to a specific coordinate.
  • Pick up a payload.
  • Charge at a docking station.
  • Wait (a null action). In a heterogeneous fleet, the action space differs per agent type (e.g., a manual forklift vs. an AMR). The agent's goal is to learn a policy—a mapping from states to actions—that maximizes long-term reward.
03

Transition Function (P)

The transition function, denoted P(s' | s, a), defines the dynamics of the environment. It is a probability distribution over next states (s') given the current state (s) and action taken (a). It models uncertainty in outcomes. For example:

  • An action move_north has a 90% probability of success, a 5% chance of staying put (due to wheel slip), and a 5% chance of moving northeast.
  • A task pick_item may have a 98% success rate and a 2% chance of failure requiring a retry. In deterministic environments, the transition probability is 1.0 for a single outcome. This function is core to planning and simulation.
04

Reward Function (R)

The reward function, R(s, a, s'), provides a scalar feedback signal to the agent after taking action a in state s and transitioning to state s'. It defines the goal of the MDP. Rewards are typically designed to:

  • Encourage desired outcomes: +100 for completing a high-priority delivery on time.
  • Penalize costs or failures: -1 for each unit of energy consumed, -1000 for a collision.
  • Shape behavior: Small positive reward for moving toward a goal. The agent's objective is to maximize the expected cumulative reward (often discounted over time), not immediate reward. This function encodes the business or operational objective.
05

Discount Factor (γ)

The discount factor, gamma (γ), is a value between 0 and 1 that determines the present value of future rewards. It quantifies the agent's preference for immediate versus long-term reward.

  • γ = 0: The agent is myopic, caring only about the immediate next reward.
  • γ close to 1 (e.g., 0.99): The agent is far-sighted, valuing future rewards almost as much as immediate ones. Mathematically, it ensures the infinite sum of future rewards converges. In practical terms, a high gamma in fleet scheduling encourages policies that optimize for long-term efficiency and battery health, not just the next task.
06

Policy (π) & Value Functions

A policy, π(a|s), is the agent's strategy—a rule for selecting actions in each state. Solving an MDP means finding an optimal policy (π)* that maximizes expected cumulative reward. Value functions evaluate policies:

  • State-Value Function Vπ(s): The expected return starting from state s and following policy π thereafter.
  • Action-Value Function Qπ(s, a): The expected return after taking action a in state s and then following π. The Bellman equations recursively define these values. Reinforcement Learning algorithms, like Q-Learning, directly approximate Q*(s,a) to derive the optimal policy without knowing the full transition model.
FOUNDATIONAL FRAMEWORK

How Does an MDP Work?

A Markov Decision Process (MDP) is the core mathematical model for sequential decision-making under uncertainty, forming the theoretical bedrock for reinforcement learning and stochastic optimal control.

An MDP works by modeling an agent interacting with an environment over discrete time steps. The environment is in a state s. The agent selects an action a, causing a transition to a new state s' with probability P(s'|s,a) and receiving an immediate numerical reward R. The agent's goal is to learn a policy—a mapping from states to actions—that maximizes the expected cumulative future reward, known as the return. The Markov property ensures the future depends only on the current state and action, not the history.

Solving an MDP involves finding an optimal policy, typically by computing a value function V(s) (the expected return from a state) or an action-value function Q(s,a). Algorithms like value iteration or policy iteration use dynamic programming and the Bellman equation to iteratively improve these estimates. In complex, unknown environments, reinforcement learning methods like Q-learning are used to approximate these functions through experience, enabling applications from robotics to logistics scheduling.

FOUNDATIONAL FRAMEWORK

Key Applications of MDPs

The Markov Decision Process (MDP) provides the mathematical bedrock for sequential decision-making under uncertainty. Its core applications span from theoretical algorithms to real-world control systems.

02

Robotics & Autonomous Navigation

In robotics, MDPs model the robot's state (e.g., position, battery level), actions (move forward, turn), and transition probabilities (accounting for wheel slippage or sensor noise). The reward function encodes goals (reach target) and penalties (collision, high energy use). Solving the MDP yields a robust navigation policy. This is critical for:

  • Autonomous mobile robots (AMRs) in warehouses.
  • Self-driving car decision-making at intersections.
  • Drone path planning in uncertain wind conditions.
03

Dynamic Resource Scheduling

MDPs optimize the sequential allocation of limited resources over time under uncertainty. States represent resource levels and demand, actions are allocation decisions, and rewards measure efficiency or revenue.

  • Compute Cluster Scheduling: Allocating jobs to servers with uncertain runtimes.
  • Battery-Aware Fleet Orchestration: Deciding when to send an AMR to charge vs. execute a task.
  • Network Packet Routing: Choosing paths with stochastic link delays. The solution provides a policy that balances immediate gains against future resource availability.
04

Inventory & Supply Chain Management

MDPs model classic inventory control problems where a manager must decide order quantities each period. The state is current stock level, actions are order sizes, and transition dynamics incorporate stochastic customer demand. Rewards are profit from sales minus holding and stockout costs. The optimal policy often takes a threshold form (e.g., "order up to S"). This framework extends to multi-echelon supply chains and perishable goods management.

05

Healthcare Treatment Planning

MDPs formulate personalized medical treatment as a sequential decision process. The state captures patient vitals and disease progression, actions are treatment choices (drug A, surgery, monitor), and transition probabilities model uncertain patient responses. Rewards encode patient outcomes (quality-adjusted life years). Solving the MDP yields an adaptive treatment policy that recommends the best action given the current patient state, forming the basis for clinical decision support systems.

06

Finance & Algorithmic Trading

In quantitative finance, MDPs model portfolio management and optimal execution. The state includes asset prices, portfolio holdings, and market signals. Actions are trading decisions (buy/sell volumes). Transition uncertainty captures market volatility. The reward is often a risk-adjusted return (e.g., Sharpe ratio). The resulting policy dictates dynamic asset allocation or trade scheduling to minimize market impact. This bridges stochastic control theory with modern algorithmic trading strategies.

THEORETICAL EXTENSIONS

Common Extensions of the Basic MDP Framework

This table compares advanced mathematical extensions to the core Markov Decision Process (MDP) framework, detailing their key features, computational implications, and primary use cases for solving complex real-world decision problems.

Framework ExtensionCore ModificationKey Assumption RelaxedPrimary Solution MethodTypical Use Case in Fleet Orchestration

Partially Observable MDP (POMDP)

Agent receives observations correlated with, but not equal to, the true state.

Perfect State Information

Point-based value iteration, Monte Carlo Tree Search

Navigation with noisy sensor data (e.g., lidar, GPS).

Semi-MDP (SMDP)

Actions can have variable, stochastic durations.

Discrete, uniform time steps

Options framework, SMDP value iteration

Modeling long-duration tasks like charging or complex pick operations.

Multi-Agent MDP (MMDP) / Decentralized MDP (Dec-MDP)

Multiple agents act in a shared environment with a joint or individual reward.

Single-agent environment

Joint-action learners, correlated equilibria, heuristic team policies

Coordinating multiple AMRs to avoid deadlock and optimize throughput.

Hierarchical MDP (HMDP)

Decision process is decomposed into a hierarchy of subtasks or abstract actions.

Flat action space

MaxQ, Hierarchical Abstract Machines (HAMs)

Decomposing a delivery mission into navigation, docking, and handoff phases.

Constrained MDP (CMDP)

Introduces additional cost functions that must be constrained in expectation.

Unconstrained reward maximization

Lagrangian relaxation, primal-dual algorithms

Ensuring safety (e.g., collision probability < 0.1%) while maximizing efficiency.

Risk-Sensitive MDP

Optimizes a risk measure (e.g., CVaR, variance) of the return, not just its expectation.

Risk-neutrality (linear utility)

Dynamic programming with risk metrics

Planning for high-value deliveries where on-time completion is critical.

Factored MDP

State is represented as a set of variables; transition dynamics are factored across them.

Unstructured, monolithic state representation

Approximate linear programming, SPUDD algorithm

Modeling large-scale warehouse state via zones, agent statuses, and inventory levels.

MARKOV DECISION PROCESS

Frequently Asked Questions

A Markov Decision Process (MDP) is the foundational mathematical framework for sequential decision-making under uncertainty, forming the core of reinforcement learning and stochastic optimal control. These questions address its core mechanics, applications, and relationship to related optimization paradigms.

A Markov Decision Process (MDP) is a formal mathematical framework for modeling sequential decision-making problems where outcomes are partly random and partly under the control of a decision-maker. It provides the theoretical bedrock for reinforcement learning (RL) and stochastic optimal control. An MDP is defined by a 5-tuple: (S, A, P, R, γ), where S is a set of states, A is a set of actions, P(s' | s, a) is the state transition probability function, R(s, a, s') is the reward function, and γ (gamma) is a discount factor between 0 and 1 that determines the present value of future rewards. The core assumption is the Markov Property: the future state depends only on the current state and action, not on the entire history.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.