matlab,optimization,convex-optimization,cvxopt,cvx

The objective in your MATLAB code is outputting a vector, not a number (scalar). Change it to: (1/m * sum( log(1+ exp(-b.* (A * x)) ) ) ) And it will return a single number....