cvxpy, cvxopt and convex optimization

cvxpy module is a nice wrapper around cvxopt that follows paradigm of a disciplined convex programming.
Its a bit slower, but has a very similar syntax as cvx toolbox for Matlab (cvx in Matlab is great!).
Here are some notes:
In cvxpy max() function accepts only one arguement while in cvxopt it behaves differently depending on either there is a variable passed among arguements. Use numpy.maximum() function in cvxpy to do element wise maximum of two vectors.

This entry was posted in convex optimization, Machine Learning. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s