Program listing for file numerics/src/tools/ArmijoSearch.h#
Return to documentation for this file
1#ifndef ARMIJOSEARCH_H
2#define ARMIJOSEARCH_H
3
4
5
6#include "SiconosConfig.h"
7#include "line_search.h"
8
9
10typedef struct {
11 double gamma;
12} armijo_extra_params;
13
14#if defined(__cplusplus) && !defined(BUILD_AS_CPP)
15extern "C"
16{
17#endif
18
19
20 double search_Armijo_standalone(int n, double* theta, double preRHS, search_data* ls_data);
21
22
23 static inline double linesearch_Armijo2(int n, double theta, double preRHS, search_data* ls_data)
24 {
25 return line_search_generic(n, theta, preRHS, ls_data, LINESEARCH, &search_Armijo_standalone);
26 }
27
28
29
30 static inline double arcsearch_Armijo2(int n, double theta, double preRHS, search_data* ls_data)
31 {
32 return line_search_generic(n, theta, preRHS, ls_data, ARCSEARCH, &search_Armijo_standalone);
33 }
34
35
36 void search_Armijo_params_init(armijo_extra_params* p);
37
38#if defined(__cplusplus) && !defined(BUILD_AS_CPP)
39}
40#endif
41
42#endif