annotate toolboxes/alps/ALPS/configuration.m @ 154:0de08f68256b ivand_dev

ALPS toolbox - Algebraic Pursuit added to smallbox
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Fri, 12 Aug 2011 11:17:47 +0100
parents
children
rev   line source
ivan@154 1 function [solveNewtonb, gradientDescentx, solveNewtonx] = configuration(mode)
ivan@154 2 % Function that maps 'mode' value into (SolveNewtonb, GradientDescentx, SolveNewtonx) configuration
ivan@154 3
ivan@154 4 if (mode == 0)
ivan@154 5 solveNewtonb = 0;
ivan@154 6 gradientDescentx = 0;
ivan@154 7 solveNewtonx = 0;
ivan@154 8 elseif (mode == 1)
ivan@154 9 solveNewtonb = 0;
ivan@154 10 gradientDescentx = 0;
ivan@154 11 solveNewtonx = 1;
ivan@154 12 elseif (mode == 2)
ivan@154 13 solveNewtonb = 0;
ivan@154 14 gradientDescentx = 1;
ivan@154 15 solveNewtonx = 0;
ivan@154 16 elseif (mode == 4)
ivan@154 17 solveNewtonb = 1;
ivan@154 18 gradientDescentx = 0;
ivan@154 19 solveNewtonx = 0;
ivan@154 20 elseif (mode == 5)
ivan@154 21 solveNewtonb = 1;
ivan@154 22 gradientDescentx = 0;
ivan@154 23 solveNewtonx = 1;
ivan@154 24 elseif (mode == 6)
ivan@154 25 solveNewtonb = 1;
ivan@154 26 gradientDescentx = 1;
ivan@154 27 solveNewtonx = 0;
ivan@154 28 end;