https://github.com/kul-forbes/ForBES
Revision 2303d5e71454cd7e4141d935a587d74d4baccbc4 authored by Lorenzo Stella on 27 January 2017, 13:37:57 UTC, committed by Lorenzo Stella on 27 January 2017, 13:37:57 UTC
1 parent 0402dad
Tip revision: 2303d5e71454cd7e4141d935a587d74d4baccbc4 authored by Lorenzo Stella on 27 January 2017, 13:37:57 UTC
fixed bug
fixed bug
Tip revision: 2303d5e
forbes_test.m
function forbes_test()
% add path
addpath(fullfile(fileparts(mfilename('fullpath')), 'tests'));
fprintf('* testing library functions:\n');
fprintf('%40s', 'sumOp... '); tic(); test_sumOp; fprintf('OK (%5.2f s)\n', toc());
fprintf('%40s', 'stackOp... '); tic(); test_stackOp; fprintf('OK (%5.2f s)\n', toc());
fprintf('%40s', 'separableSum... '); tic(); test_separableSum; fprintf('OK (%5.2f s)\n', toc());
fprintf('%40s', 'quadratic... '); tic(); test_quadratic; fprintf('OK (%5.2f s)\n', toc());
fprintf('* testing solver utilities:\n');
fprintf('%40s', 'MakeProblem... '); tic(); test_MakeProblem; fprintf('OK (%5.2f s)\n', toc());
fprintf('%40s', 'CheckGamma... '); tic(); test_CheckGamma; fprintf('OK (%5.2f s)\n', toc());
fprintf('%40s', 'LineFBE... '); tic(); test_LineFBE; fprintf('OK (%5.2f s)\n', toc());
fprintf('%40s', 'SegmentFBE... '); tic(); test_SegmentFBE; fprintf('OK (%5.2f s)\n', toc());
fprintf('%40s', 'FBE inequalities... '); tic(); test_inequalities1; fprintf('OK (%5.2f s)\n', toc());
fprintf('%40s', 'FBE inequalities... '); tic(); test_inequalities2; fprintf('OK (%5.2f s)\n', toc());
fprintf('* testing composite problems:\n');
fprintf('%36s', 'SolveLasso_small'); tic(); test_SolveLasso_small; fprintf(' OK (%5.2f s)\n', toc());
fprintf('%36s', 'SolveLasso_random'); tic(); test_SolveLasso_random; fprintf(' OK (%5.2f s)\n', toc());
fprintf('%36s', 'SolveSparseLogReg_small'); tic(); test_SolveSparseLogReg_small ; fprintf(' OK (%5.2f s)\n', toc());
% fprintf('%36s', 'SolveNuclearNormMC_random'); tic(); test_SolveNuclearNormMC_random; fprintf(' OK (%5.2f s)\n', toc());
% fprintf('%36s', 'SolveRankConstrMC_random'); tic(); test_SolveRankConstrMC_random; fprintf(' OK (%5.2f s)\n', toc());
fprintf('* testing separable problems:\n');
fprintf('%36s', 'SolveSVM_random'); tic(); test_SolveSVM_random; fprintf(' OK (%5.2f s)\n', toc());
fprintf('%36s', 'SolveQP_random'); tic(); test_SolveQP_random; fprintf(' OK (%5.2f s)\n', toc());
rmpath(fullfile(fileparts(mfilename('fullpath')), 'tests'));
Computing file changes ...