Thanks Johan for your response. I have posted a wrong question/code earlier. The code, I pasted earlier is feasible and calculates the Chebychev ball correctly as you have identified. What I am trying to solve is find the largest Euclidean ball with the polyhedron as mentioned in the below link.
http://web.cvxr.com/cvx/examples/cvxbook/Ch04_cvx_opt_probs/html/chebyshev_center.htmlWith my coordinates of the polytope given as:
a1 = [-2.000187 ; -0.9914489] ;
a2 = [ -1.810649; -1.057275] ;
a3 = [-1.485188 ;-1.117004] ;
a4 = [-1.212682 ;-0.8645709];
a5 = [ -1.659109 ; -0.8895376] ;
a6 = [-2.000187 ; -0.9914489] ;
The polytope is convex,where as the half spaces generated are thin and long (Attached *m file plots it), which is making the problem infeasible. Wondering if I can use YALMIP to solve for center by fitting the largest Euclidean ball for the provided coordinates.
Response greatly appreciated.