This is my first time to use CVX, and I want to see how it works with a simple example. The following is the example that I am trying:
% Matlab code
m=1
cvx_begin
variable x(1)
minimize( x(1) )
subject to
2<=x(1)
cvx_end
However, I got the error ‘model.quadcon must be a struct array with fields q, and rhs’. Does my example itself have some issues, and is there any way to fix this issue? Thanks!