Inferensys

Glossary

Mixed-Integer Linear Programming (MILP) Dispatch

A mathematical optimization technique used to solve the unit commitment and economic dispatch problem for DER fleets by handling discrete on/off decisions and continuous output levels.
Finance analyst reviewing cash flow AI optimization on laptop, charts and projections visible, home office work session.
OPTIMIZATION TECHNIQUE

What is Mixed-Integer Linear Programming (MILP) Dispatch?

A mathematical optimization method used to solve the unit commitment and economic dispatch problem for distributed energy resource fleets by handling discrete on/off decisions and continuous output levels simultaneously.

Mixed-Integer Linear Programming (MILP) dispatch is a mathematical optimization technique that determines the optimal operational schedule for a fleet of distributed energy resources by solving an objective function—typically cost minimization—subject to linear constraints, where some decision variables are restricted to integer values (e.g., on/off status) while others remain continuous (e.g., power output level).

The solver navigates a combinatorial search space to find the globally optimal solution, respecting hard constraints such as state-of-charge limits, ramp rates, and minimum uptime/downtime requirements. This guarantees constraint-feasible dispatch schedules that simpler heuristic or rule-based controllers cannot reliably produce for heterogeneous asset portfolios.

CORE CAPABILITIES

Key Features of MILP Dispatch

Mixed-Integer Linear Programming dispatch provides the mathematical rigor required to solve the complex unit commitment and economic dispatch problem for heterogeneous DER fleets, handling discrete on/off states and continuous output levels simultaneously.

01

Discrete Decision Handling

MILP is uniquely capable of modeling binary commitment decisions (e.g., generator on/off, breaker open/closed) alongside continuous variables like power output setpoints. This is essential for DER fleets where assets like backup generators cannot be partially committed.

  • Models start-up costs and minimum up/down time constraints
  • Handles integer states for battery charging/discharging modes
  • Enforces logical constraints (e.g., if generator A is on, generator B must be off)
02

Global Optimality Guarantee

Unlike heuristic or greedy algorithms, MILP solvers use branch-and-bound and cutting-plane methods to mathematically prove that the found solution is the global optimum within a specified tolerance gap. This is critical for financial settlement in wholesale energy markets.

  • Provides a provable optimality gap (e.g., 0.01%)
  • Eliminates the risk of leaving revenue on the table from suboptimal dispatch
  • Essential for auditability in regulated utility environments
03

Constraint-Rich Modeling

MILP frameworks can encode virtually any linear operational constraint, making them ideal for the IEEE 1547-2018 and UL 1741 SB compliance landscape. Constraints are expressed as linear equalities and inequalities.

  • Ramp rate limits: Maximum change in output per minute
  • State of charge (SOC) boundaries: Battery minimum and maximum energy levels
  • Export limits: Dynamic operating envelopes enforced as hard constraints
  • Reserve requirements: Headroom allocation for frequency response
04

Objective Function Flexibility

The objective function can be tailored to any linear combination of cost or value drivers, enabling multi-objective optimization through weighted-sum methods or lexicographic goal programming.

  • Economic dispatch: Minimize fuel cost, grid import cost, or levelized cost of energy
  • Self-consumption: Maximize behind-the-meter solar utilization
  • Peak shaving: Minimize the maximum demand charge over a billing period
  • Emissions minimization: Dispatch to minimize carbon intensity using locational marginal emissions signals
05

Receding Horizon Implementation

MILP dispatch is typically deployed in a Model Predictive Control (MPC) framework, where the optimization is solved repeatedly over a rolling time window. Only the first timestep's decisions are executed before the problem is re-solved with updated forecasts.

  • Incorporates updated load and solar forecasts at each step
  • Provides inherent feedback correction against forecast errors
  • The look-ahead horizon (e.g., 24-48 hours) ensures decisions account for future expected events like peak pricing periods
06

Solver Ecosystem & Performance

Commercial solvers like Gurobi and IBM CPLEX, along with open-source alternatives like HiGHS, have achieved dramatic performance improvements. Modern MILP solvers can handle problems with millions of variables and constraints in minutes.

  • Presolve routines automatically simplify the problem before solving
  • Parallel branch-and-bound exploits multi-core processors
  • Warm-starting from a previous solution accelerates convergence
  • Solver-as-a-service APIs enable cloud-native dispatch engines
MILP DISPATCH FUNDAMENTALS

Frequently Asked Questions

Clear, technically precise answers to the most common questions about applying Mixed-Integer Linear Programming to the unit commitment and economic dispatch of distributed energy resource fleets.

Mixed-Integer Linear Programming (MILP) dispatch is a mathematical optimization technique that determines the least-cost schedule for a fleet of distributed energy resources (DERs) by solving for both discrete on/off states and continuous power output levels simultaneously. The 'mixed-integer' component refers to the solver's ability to handle variables that are both integers—such as the binary commitment status of a diesel generator (1 for on, 0 for off)—and continuous real numbers, like the precise kilowatt output of a battery energy storage system. The 'linear programming' aspect constrains all objective functions and constraints to linear relationships, ensuring the problem can be solved to global optimality using algorithms like branch-and-bound. In a Virtual Power Plant (VPP) context, the MILP solver ingests inputs including forecasted load, solar irradiance predictions, and real-time Locational Marginal Pricing (LMP) signals, then outputs a binding dispatch schedule that minimizes total operational cost while respecting technical constraints such as state-of-charge limits, ramp rates, and minimum up/down times.

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.