comparison 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
comparison
equal deleted inserted replaced
153:af307f247ac7 154:0de08f68256b
1 function [solveNewtonb, gradientDescentx, solveNewtonx] = configuration(mode)
2 % Function that maps 'mode' value into (SolveNewtonb, GradientDescentx, SolveNewtonx) configuration
3
4 if (mode == 0)
5 solveNewtonb = 0;
6 gradientDescentx = 0;
7 solveNewtonx = 0;
8 elseif (mode == 1)
9 solveNewtonb = 0;
10 gradientDescentx = 0;
11 solveNewtonx = 1;
12 elseif (mode == 2)
13 solveNewtonb = 0;
14 gradientDescentx = 1;
15 solveNewtonx = 0;
16 elseif (mode == 4)
17 solveNewtonb = 1;
18 gradientDescentx = 0;
19 solveNewtonx = 0;
20 elseif (mode == 5)
21 solveNewtonb = 1;
22 gradientDescentx = 0;
23 solveNewtonx = 1;
24 elseif (mode == 6)
25 solveNewtonb = 1;
26 gradientDescentx = 1;
27 solveNewtonx = 0;
28 end;