Skip to content

Solving a convex problem with affine equality constrains with CVX and Newton algorithm

Notifications You must be signed in to change notification settings

ekaratarakis/Convex-Probles-with-Affine-Equality-Constrains

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Convex-Probles-with-Affine-Equality-Constrains

The problem which we are going to study is an convex problem with affine equality constrains.

image affine problem

where A belongs to R+^{pxn}, rank(A) = p and b belongs to R+{p}.

Solving with CVX

An extremely good approach of the problem's solution can be obtained via CVX which is a Mathworks product. Further information in the link below

http://cvxr.com/cvx/

Solving with Newton Algorithm

After that we perform again the search of a feasible point x0 with CVX having under consideration that

x0 > 0 & Ax0 = b

Then we use the above x0 to implement the Newton algorithm for finding a feasible point x0. Newton's method was implemented with backtracking.

Comparing the Results

Now, we notice that not only the output from the CVX solution method but also the output from Newton's method converge to a feasible point x0. Of course, there are some deviation but we can ignore it.

image Outcome_1

Solving the Dual Problem

Now, its time to solve the dual problem of the problem above again using the CVX. We notice that the solution of the dual problem is identical with the solution of the primal problem, a result that was expected.

image Outcome_2

Releases

No releases published

Packages

No packages published

Languages