https://github.com/kul-forbes/ForBES
Revision dc65c2366e10a76b7166228adb65acb9a20d68a0 authored by Pantelis Sopasakis on 05 March 2018, 20:56:03 UTC, committed by GitHub on 05 March 2018, 20:56:03 UTC
crash of Forbes on Matlab 2017a
Tip revision: dc65c2366e10a76b7166228adb65acb9a20d68a0 authored by Pantelis Sopasakis on 05 March 2018, 20:56:03 UTC
Merge pull request #3 from Zilleplus/master
Merge pull request #3 from Zilleplus/master
Tip revision: dc65c23
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('%40s', 'lqrCost... '); tic(); test_lqrCost; 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 ...