Convex Programming in Python
Alejandro Garcés · 2021
This chapter helps the students to identify linear and quadratic optimization problems. It utilizes Python and the module CvxPy, as a modeling language for convex optimization problems. The chapter presents the implementation of linear and quadratic programming models to solve general optimization problems. It also presents the canonical representation of a linear programming problem. The chapter provides some examples that show how to use Python and CvxPy to solve linear programming problems. It is common to find optimization problems in power systems operations that have quadratic objective functions. The chapter provides the symmetric and positive semidefinite matrices that have some properties. It also presents a series of simple examples to familiarize the functions available in CvxPy, for solving quadratic problems. The chapter describes the details of mixed-integer programming problems, and mixed-integer non-linear programming problems. It also presents some examples of heuristic transformations.