/*
 * sdpsol source file for the logrithmic Chebychev approximation example
 *
 * See:
 *   L. Vandenberghe and S. Boyd, "Semidefinite Programming", Submitted
 *   SIAM review, July 1994, Sec. 2
 */

include("A.mat");     /* load A, where A = [a_1^T/b_1;
                                            a_2^T/b_2;
                                              ...
                                            a_p^T/b_p]
                         is already preprocessed by Matlab */
p = rows(A);
k = cols(A);

variable x(k,1),t,s;  /* s is another slack variable */

  A*x .< t;           /* componentwise inequ */
    s .< A*x;         /* componentwise inequ */
[s, 1;
 1, t] > 0;           /* s > 1/t */

minimize err_bnd = t;
