Disciplined Bilevel Programming

Hao Zhu, Joschka Boedecker
9/1/2026
math.OCcs.CEcs.LG

No official code found. Best implementation: dxogrp/blvpy (0 stars, Apache-2.0, last commit 2026-09-01).

Abstract

Bilevel optimization provides a natural modeling language for hierarchical decision problems. However, applying existing numerical solvers usually requires substantial manual analysis and reformulation.

Show full abstract

In this paper, we introduce disciplined bilevel programming (DBLP), a symbolic framework that allows users to specify and solve optimistic bilevel problems in a high-level, human-readable way that is close to the mathematical formulation. For problems with a disciplined nonlinear upper problem and a convex lower problem satisfying the disciplined parameterized programming rules, DBLP automatically canonicalizes the lower problem into conic form and constructs an equivalent single-level reformulation using the conic Karush-Kuhn-Tucker conditions. We relax the resulting complementarity constraint and use a gap continuation procedure to approximately solve a sequence of smooth nonlinear problems. We implement DBLP in the open-source Python package BLVPY, an extension of CVXPY for bilevel programming. We demonstrate the modeling and solution capabilities of BLVPY on a range of bilevel optimization problems from several application domains. The proposed framework and implementation allow users to specify and solve bilevel optimization problems within a few lines of code, without prior expertise in bilevel modeling and numerical optimization.

View on arXivView PDF

Code Implementations(1)

dxogrp/blvpyCommunity71%
Apache-2.0

Disciplined bilevel programming in Python

00Aug 12, 20263 months agoApache-2.0

Similar Papers

Cite this paper

@article{zhu2026disciplined,
  title  = {Disciplined Bilevel Programming},
  author = {Hao Zhu and Joschka Boedecker},
  year   = {2026},
  eprint = {2609.00644},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.00644v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.00644.svg)](https://codeofpaper.com/paper/2609.00644)

Discussion