Learning Convex Optimization Models

Akshay Agrawal, Shane Barratt, Stephen Boyd
6/7/2020
cs.LGstat.ML

Official code: cvxpy/cvxpylayers (2,153 stars, Python, Apache-2.0, last commit 2026-11-12).

Abstract

A convex optimization model predicts an output from an input by solving a convex optimization problem. The class of convex optimization models is large, and includes as special cases many well-known models like linear and logistic regression.

Show full abstract

We propose a heuristic for learning the parameters in a convex optimization model given a dataset of input-output pairs, using recently developed methods for differentiating the solution of a convex optimization problem with respect to its parameters. We describe three general classes of convex optimization models, maximum a posteriori (MAP) models, utility maximization models, and agent models, and present a numerical experiment for each.

View on arXivView PDF

Code Implementations(1)

cvxpy/cvxpylayersOfficial100%
Apache-2.0

Differentiable convex optimization layers

2,153196PythonOct 27, 20192 weeks agoApache-2.0

Similar Papers

Cite this paper

@article{agrawal2020learning,
  title  = {Learning Convex Optimization Models},
  author = {Akshay Agrawal and Shane Barratt and Stephen Boyd},
  year   = {2020},
  eprint = {2006.04248},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.04248}
}

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/2006.04248.svg)](https://codeofpaper.com/paper/2006.04248)

Discussion