1 <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2008 - INRIA
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13 <!DOCTYPE MAN SYSTEM "../../../../modules/helptools/help.dtd">
15 <LANGUAGE>eng</LANGUAGE>
16 <TITLE>karmarkar</TITLE>
17 <TYPE>Scilab Function</TYPE>
18 <DATE>$LastChangedDate$</DATE>
19 <SHORT_DESCRIPTION name="karmarkar"> karmarkar algorithm</SHORT_DESCRIPTION>
21 <CALLING_SEQUENCE_ITEM>[x1]=karmarkar(a,b,c,x0) </CALLING_SEQUENCE_ITEM>
26 <PARAM_NAME>a</PARAM_NAME>
28 <SP>: matrix (n,p)</SP>
32 <PARAM_NAME>b</PARAM_NAME>
38 <PARAM_NAME>c</PARAM_NAME>
44 <PARAM_NAME>x0</PARAM_NAME>
46 <SP>: initial vector</SP>
50 <PARAM_NAME>eps</PARAM_NAME>
52 <SP>: threshold (default value : 1.d-5)</SP>
56 <PARAM_NAME>gamma</PARAM_NAME>
58 <SP>: descent step <VERB>0<gamma<1</VERB> , default value : 1/4</SP>
62 <PARAM_NAME>x1</PARAM_NAME>
68 <PARAM_NAME>crit</PARAM_NAME>
70 <SP>: value of c'*x1</SP>
77 Computes <VERB>x</VERB> which minimizes</P>
84 under constraints:</P>
95 // a=rand(n,p);c=rand(p,1);x0=abs(rand(p,1));b=a*x0;x1=karmarkar(a,b,c,x0);