Skip to content
forked from cvxpy/cvxpy

A Python-embedded modeling language for convex optimization problems.

License

Notifications You must be signed in to change notification settings

manzo1991/cvxpy

This branch is 1 commit ahead of, 2001 commits behind cvxpy/cvxpy:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e218398 · Jan 31, 2017
Oct 29, 2016
Sep 13, 2016
Jan 31, 2017
Jan 31, 2017
Aug 3, 2016
Oct 29, 2016
Feb 8, 2014
Aug 3, 2016
Aug 3, 2016
Oct 29, 2016
Aug 14, 2013
Jan 8, 2014
Jul 23, 2016
Aug 15, 2013
Aug 21, 2016
Aug 15, 2013
Oct 8, 2013
Oct 30, 2013
Aug 3, 2016
Oct 29, 2016

Repository files navigation

CVXPY

Build Status Build status Join the chat at https://gitter.im/cvxgrp/cvxpy

Join the CVXPY mailing list and Gitter chat for the best CVXPY support!

The CVXPY documentation is at cvxpy.org.

CVXPY is a Python-embedded modeling language for convex optimization problems. It allows you to express your problem in a natural way that follows the math, rather than in the restrictive standard form required by solvers.

For example, the following code solves a least-squares problem where the variable is constrained by lower and upper bounds:

from cvxpy import *
import numpy

# Problem data.
m = 30
n = 20
numpy.random.seed(1)
A = numpy.random.randn(m, n)
b = numpy.random.randn(m)

# Construct the problem.
x = Variable(n)
objective = Minimize(sum_squares(A*x - b))
constraints = [0 <= x, x <= 1]
prob = Problem(objective, constraints)

# The optimal objective is returned by prob.solve().
result = prob.solve()
# The optimal value for x is stored in x.value.
print(x.value)
# The optimal Lagrange multiplier for a constraint
# is stored in constraint.dual_value.
print(constraints[0].dual_value)

CVXPY was designed and implemented by Steven Diamond, with input from Stephen Boyd and Eric Chu.

A tutorial and other documentation can be found at cvxpy.org.

This git repository holds the latest development version of CVXPY. For installation instructions, see the install guide at cvxpy.org.

About

A Python-embedded modeling language for convex optimization problems.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.5%
  • Other 0.5%