# Questions tagged [cvx]

CVX is a popular modeling framework for disciplined convex programming that CVX turns MATLAB into a modeling language, allowing constraints and objectives to be specified using standard MATLAB expression syntax.

37 questions
Filter by
Sorted by
Tagged with
40 views

### Best optimization technique for solving overdetermined systems with a constraint

I am trying to make a prediction model based on a system of linear equations: $A\vec{x}=\vec{b}$, where $\vec{x}$ ($m\times1$) is my learning parameters, $A (m\times n)$ and $\vec{b}$ $(m\times1)$ are ...
49 views

### Works on CVX-Matlab but not on CVXPY

I have the following program running correctly in Matlab. ...
33 views

### How to use decision variable in the exponential term while using CVXPY?

The objective function of my optimization problem involves the exponential function of the decision variables. My code is ...
22 views

### SCS deprecation warning in CVX

When using solver SCS in CVX to solve an SDP, I get the following message: ...
• 146
49 views

### Formulating problem in CVX

Crossposted on Stack Overflow I am new to CVX and I have to solve the following optimization problem. I have written the code for it and also changed the equalities to make it convex but I think ...
1 vote
43 views

### How to make this problem convex and solve it using CVX?

How to make this problem convex so that it can be solved by semidefinite programming in cvx? Given $A\in\mathbb{C}^{n\times n}$ \begin{array}{ll} \underset{X\in\mathbb{C^{n\times n}}}{\text{maximize}} ...
• 1,559
112 views

### How to check the feasibility of standard LMI using Matlab/CVX?

In the wikipedia page of LMI, the standard form is given by $$A_0+y_1A_1+y_2A_2+\cdots+y_mA_m \succeq 0,$$ where $A_i$ are $m\times m$ symmetric matrices and $y_i$ are real vectors, $i=1,2,\ldots m.$ ...
• 1,559
82 views

### Extracting solution of SDP problem in CVX

Assume we are given the following semidefinite program (SDP) written in MATLAB using CVX: ...
• 2,119
1 vote
58 views

### Finding rank of image using nuclear norm optimization with linear constraints

I'm trying to follow the theory laid out by the paper Recht, Benjamin; Fazel, Maryam; Parrilo, Pablo A., Guaranteed minimum-rank solutions of linear matrix equations via nuclear norm minimization to ...
• 1,602
101 views

### How do I implement this convex quadratic-linear function in CVX?

From Proving that quadratic form is convex in (vector, matrix) arguments we know that $$f(Q,x) = x^T Q x$$ is a convex function jointly in $Q$ and $x$ when $Q\succeq 0$. How can I optimize with ...
1 vote
356 views

### Radius of the largest circle in an irregular convex polygon by utilizing the Chebyshev center

I am trying to find the largest circle within the polygon with corners (0, 1), (0, 6), (4, 10), (8, 10), (11, 7), (11, 4), (7, 0), and (1, 0). So far I have drawn out this polygon and defined its ...
• 131
355 views

### How to write these function with disciplined convex programming rule to use CVX? x*(2^(y/x)-1)

I have the following functions in an optimization problem. $x\times 2^{(y/x)-1}$ $x \log (a+b\times 2^{(y/cx)-1} )$ Here, x,y>0, and also a,b,c>0, and b>a. For these conditions, I checked ...
• 177
84 views

Consider the following piecewise monotonically increasing, concave, and smooth function defined over $x\in[0,\infty)$: $$f(x) = \begin{cases} \displaystyle 2\ln\left(\frac{1}{6}x+\frac{5}{3}\right), ... • 3,099 1 vote 0 answers 645 views ### cvxopt: Trying to do LP and get "Terminated (singular KKT matrix)" I am new to cvxopt and am trying to understand this fairly cryptic error message "Terminated (singular KKT matrix)." (At least critic for me.) I am solving a ... • 478 0 votes 0 answers 55 views ### What is an easy way to use SDP solvers to generate correlation matrices that satisfy some linear constraints? Given a correlation matrix C_0 \in \mathcal{R}^{n \times n} . I want to generate other correlation matrices C \in \mathcal{R}^{n \times n}  that satisfies some linear constraints of the form$$ ...
128 views

I am trying to implement this QCQP optimisation problem in a more efficient way. The optimisation aims to smooth an existing 3D trajectory represented by "P" which contains "n" 3D coordinates. The "n"...
42 views

### Standardizing a convex problem

Consider the following convex optimization problem \begin{align} \max_{\mathbf{X},\mathbf{v}}~&~\mbox{trace}(\mathbf{QX}) \\s.t.&~~\mbox{diag}(\mathbf{v})-\mathbf{X}\succeq 0 \\ &~~ \...
• 8,408
253 views

### Minimize Von Neumann Entropy in CVX Matlab [closed]

My optimization problem looks like: cvx_begin variable x(2, 2) semidefinite; minimize(VNE(x)) subject to trace(x) == 1 cvx_end Where, VNE or Von Neumann ...
47 views

### How to write this constrain in CVX

I don't know how to describe the following constrain in CVX: $$M = bb^H$$ here $b$ is a complex column vector, and $b^H$ is the Hermitian transpose vector of $b$. Thanks!
1 vote
133 views

### is this logdet function convex?

I have a question regarding convexity of logdet function. Given the convex set $\mathcal{C}=\{{\bf W}| w_{f,k}\in \mathbb{R}^+,\, \sum_f w_{f,k}^2\leq1\,\,\forall k\}$, is the function $I({\bf W})$ ...
1 vote
310 views

39 views

• 837
5k views

### Low rank approximation using CVX toolbox in Matlab

I try to use CVX toolbox to do "low rank approximation" work. The code is as follows: ...
• 31
2k views

### Matlab Optimization Toolbox versus CVX?

I would like to know what the difference between the Matlab Optimization Toolbox and CVX, which is a convex optimization toolbox? Can a convex optimization problem be solved in both?
• 217
1 vote
79 views

### Issues with CVX package for optimization

I am trying to use the cvx package for optimization. However, I am having some issues with it. I have a variable $X$ which is a matrix but I cannot add $X^{-1}$ in the objective function. What should ...
• 3,802
1 vote
$A$ is an $N \times N$ complex matrix $W$ is an $N \times N$ complex matrix $C$ is an $N \times N$ complex diagonal matrix $u$ is a scalar $V$ is an $N \times N$ complex matrix, whose diagonal elects ...