global x
global y
global C
global xt
global eps

for data = {'a9a', 'yahoojp', 'real-sim', 'yahookr', 'rcv1', 'news20'}
    display(data{1});
    [y,x] = libsvmread(data{1});
    C = 16;
    l=size(y,1);
    e = ones(l,1);
    x = [x ones(size(y))];
    xt = x';
    eps = 5e-4;

    fprintf('tron\n');
    t = cputime; solution=tron_train; t1=cputime - t;
    fprintf('tron_pcond\n');
    t = cputime; solution=tron_ptrain; t1=cputime - t;
    fprintf('ls\n');
    t = cputime; solution=ls_train; t1=cputime - t;
    fprintf('ls_pcond\n');
    t = cputime; solution=ls_ptrain; t1=cputime - t;
end
