DuQuad  v1.0
Quadratic Programming Optimizations
 All Data Structures Files Functions Variables Typedefs Macros
fgm.h
Go to the documentation of this file.
1 /*
2  * fast_gradient.h
3  *
4  * Created on: Aug 21, 2014
5  * Author: Sverre
6  */
7 
8 /** \file
9  * ### Fast Gradient Method ###
10  */
11 
12 #ifndef FAST_GRADIENT_H_
13 #define FAST_GRADIENT_H_
14 
15 #include "head.h"
16 #include <math.h>
17 #include "math_functions.h"
18 #include "print.h"
19 
20 struct Struct_FGM
21 {
22  real_t * H;
23  real_t * c;
27 
28  // Optimal outputs
32 
33  // INFO
34  boolean lb_is_inf;
35  boolean ub_is_inf;
38 
39  // Vectors used for calculations
40  real_t * z;
41  real_t * y;
45 
46  // Options
49 
50 }; /**< Struct containing all necessary vectors and parameters for running FGM */
51 
52 // Public functions
53 uint32_t FGM(struct Struct_FGM *s);
54 void clean_up_FGM_C();
55 
56 #endif /* FAST_GRADIENT_H_ */
unsigned int uint32_t
Definition: typedefs.h:19
real_t eigH_min
Definition: fgm.h:37
boolean ub_is_inf
Definition: fgm.h:35
void clean_up_FGM_C()
real_t * ub
Definition: fgm.h:25
real_t * temp1_dim_N
Definition: fgm.h:44
real_t * znew
Definition: fgm.h:42
real_t eps
Definition: fgm.h:48
real_t * lb
Definition: fgm.h:24
real_t * y
Definition: fgm.h:41
real_t eigH_max
Definition: fgm.h:36
real_t * H
Definition: fgm.h:22
boolean lb_is_inf
Definition: fgm.h:34
uint32_t exitflag
Definition: fgm.h:31
real_t * z
Definition: fgm.h:40
float64_t real_t
Definition: typedefs.h:25
real_t * ynew
Definition: fgm.h:43
real_t * z0
Definition: fgm.h:26
real_t * c
Definition: fgm.h:23
real_t fopt
Definition: fgm.h:30
uint32_t maxiter
Definition: fgm.h:47
Definition: fgm.h:20
uint32_t FGM(struct Struct_FGM *s)
Definition: fgm.c:12
real_t * zopt
Definition: fgm.h:29