chiark / gitweb /
recommend building in a subdir
[nlopt.git] / stogo / local.h
1 /*
2     Definitions of various variables used in the local search
3 */
4
5 #ifndef LOCAL_H
6 #define LOCAL_H
7
8 #include "tools.h"
9 #include "global.h"
10
11 extern int FC, GC ;
12
13 // Results of local search
14 enum {LS_Unstable, LS_MaxIter, LS_Old, LS_New,LS_Out, LS_MaxEvalTime} ;
15
16 const double delta_coef = 1.0/2.0; // Initialization of trust region
17 const double epsilon = 1.0E-4 ;    // Stopping criterion, var 1e-4
18 const int max_outside_steps=1 ;    // Maximum number of steps outside the box
19 const int max_iter=50 ;            // Max iterations = max_iter*dim. of problem
20
21 extern double MacEpsilon ;   //  min {x >= 0 : 1 + x > 1}
22
23 int local(Trial &, TBox &, TBox &, double, double*, Global&, int, RCRVector
24 #ifdef NLOPT_UTIL_H
25           , nlopt_stopping *stop
26 #endif
27      );
28
29 #endif