def main():
    'Main routine\n    '
    print('\nTesting ADMM')
    print('====================')
    print('m = n  : ', args.n)
    print('dataset: ', args.dataset)
    if (args.dataset == 'DOTmark'):
        print('class  : ', args.imageclass)
    print('method : ', args.method)
    print('====================')
    (mu, nu, c) = get_params(args.n, args.dataset, args.imageclass)
    start = time.time()
    if (args.method == 'primal'):
        ADMM_primal(mu, nu, c, args.iters, args.rho, args.alpha)
    elif (args.method == 'dual'):
        ADMM_dual(mu, nu, c, args.iters, args.rho, args.alpha)
    t = (time.time() - start)
    print(('time     = %.5e' % t))
Main routine
def main():
    '\n    '
    print('\nTesting ADMM')
    print('====================')
    print('m = n  : ', args.n)
    print('dataset: ', args.dataset)
    if (args.dataset == 'DOTmark'):
        print('class  : ', args.imageclass)
    print('method : ', args.method)
    print('====================')
    (mu, nu, c) = get_params(args.n, args.dataset, args.imageclass)
    start = time.time()
    if (args.method == 'primal'):
        ADMM_primal(mu, nu, c, args.iters, args.rho, args.alpha)
    elif (args.method == 'dual'):
        ADMM_dual(mu, nu, c, args.iters, args.rho, args.alpha)
    t = (time.time() - start)
    print(('time     = %.5e' % t))