DuQuad
v1.0
Quadratic Programming Optimizations
Main Page
Data Structures
Files
File List
Globals
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
;
24
real_t
*
lb
;
25
real_t
*
ub
;
26
real_t
*
z0
;
27
28
// Optimal outputs
29
real_t
*
zopt
;
30
real_t
fopt
;
31
uint32_t
exitflag
;
32
33
// INFO
34
boolean
lb_is_inf
;
35
boolean
ub_is_inf
;
36
real_t
eigH_max
;
37
real_t
eigH_min
;
38
39
// Vectors used for calculations
40
real_t
*
z
;
41
real_t
*
y
;
42
real_t
*
znew
;
43
real_t
*
ynew
;
44
real_t
*
temp1_dim_N
;
45
46
// Options
47
uint32_t
maxiter
;
48
real_t
eps
;
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_ */
uint32_t
unsigned int uint32_t
Definition:
typedefs.h:19
Struct_FGM::eigH_min
real_t eigH_min
Definition:
fgm.h:37
Struct_FGM::ub_is_inf
boolean ub_is_inf
Definition:
fgm.h:35
clean_up_FGM_C
void clean_up_FGM_C()
Struct_FGM::ub
real_t * ub
Definition:
fgm.h:25
Struct_FGM::temp1_dim_N
real_t * temp1_dim_N
Definition:
fgm.h:44
Struct_FGM::znew
real_t * znew
Definition:
fgm.h:42
Struct_FGM::eps
real_t eps
Definition:
fgm.h:48
Struct_FGM::lb
real_t * lb
Definition:
fgm.h:24
Struct_FGM::y
real_t * y
Definition:
fgm.h:41
Struct_FGM::eigH_max
real_t eigH_max
Definition:
fgm.h:36
Struct_FGM::H
real_t * H
Definition:
fgm.h:22
Struct_FGM::lb_is_inf
boolean lb_is_inf
Definition:
fgm.h:34
Struct_FGM::exitflag
uint32_t exitflag
Definition:
fgm.h:31
head.h
Struct_FGM::z
real_t * z
Definition:
fgm.h:40
real_t
float64_t real_t
Definition:
typedefs.h:25
math_functions.h
print.h
Struct_FGM::ynew
real_t * ynew
Definition:
fgm.h:43
Struct_FGM::z0
real_t * z0
Definition:
fgm.h:26
Struct_FGM::c
real_t * c
Definition:
fgm.h:23
Struct_FGM::fopt
real_t fopt
Definition:
fgm.h:30
Struct_FGM::maxiter
uint32_t maxiter
Definition:
fgm.h:47
Struct_FGM
Definition:
fgm.h:20
FGM
uint32_t FGM(struct Struct_FGM *s)
Definition:
fgm.c:12
Struct_FGM::zopt
real_t * zopt
Definition:
fgm.h:29
include
fgm.h
Generated on Sat Dec 13 2014 18:15:38 for DuQuad by
1.8.6