Convex Optimization Problems
Master convex optimization problems by getting hands-on experience with executable programs using CVXPY.
Convex optimization problems can be expressed in various standard forms, each with advantages and disadvantages depending on the specific problem. Here are some of the most common standard forms of convex optimization problems:
Linear programming (LP)
This is the simplest form of convex optimization problems, where the objective function and the inequality constraints are
Here, is the optimization variable, and are vectors, and is a matrix.
Example of LP
Consider the objective to be maximized of an optimization problem as follows:
The constraints are as follows:
The above problem can be reformulated as standard LP if and . The following code solves this LP using cvxpy
:
Get hands-on with 1400+ tech skills courses.