SHOGUN  v2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pr_loqo.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Purpose: solves quadratic programming problem for pattern recognition
8  * for support vectors
9  *
10  * Written (W) 1997-1998 Alex J. Smola
11  * Written (W) 1999-2009 Soeren Sonnenburg
12  * Written (W) 1999-2008 Gunnar Raetsch
13  * Copyright (C) 1997-2009 Fraunhofer Institute FIRST and Max-Planck-Society
14  */
15 
16 namespace shogun
17 {
18 /* verbosity levels */
19 
20 #define QUIET 0
21 #define STATUS 1
22 #define FLOOD 2
23 
24 /* status outputs */
25 
26 #define STILL_RUNNING 0
27 #define OPTIMAL_SOLUTION 1
28 #define SUBOPTIMAL_SOLUTION 2
29 #define ITERATION_LIMIT 3
30 #define PRIMAL_INFEASIBLE 4
31 #define DUAL_INFEASIBLE 5
32 #define PRIMAL_AND_DUAL_INFEASIBLE 6
33 #define INCONSISTENT 7
34 #define PRIMAL_UNBOUNDED 8
35 #define DUAL_UNBOUNDED 9
36 #define TIME_LIMIT 10
37 
38 /*
39  * solve the quadratic programming problem
40  *
41  * minimize c' * x + 1/2 x' * H * x
42  * subject to A*x = b
43  * l <= x <= u
44  *
45  * for a documentation see R. Vanderbei, LOQO: an Interior Point Code
46  * for Quadratic Programming
47  */
48 
76 int32_t pr_loqo(
77  int32_t n, int32_t m, float64_t c[], float64_t h_x[], float64_t a[],
78  float64_t b[], float64_t l[], float64_t u[], float64_t primal[],
79  float64_t dual[], int32_t verb, float64_t sigfig_max, int32_t counter_max,
80  float64_t margin, float64_t bound, int32_t restart);
81 }

SHOGUN Machine Learning Toolbox - Documentation