/* Definitions of various variables used in the local search */ #ifndef LOCAL_H #define LOCAL_H #include "tools.h" //typedef double obj(RCRVector) ; //typedef obj* Pobj ; //typedef void grad(RCRVector,RCRVector) ; //typedef grad* Pgrad ; extern int FC, GC ; // Results of local search enum {LS_Unstable, LS_MaxIter, LS_Old, LS_New,LS_Out} ; const double delta_coef = 1.0/2.0; // Initialization of trust region const double epsilon = 1.0E-4 ; // Stopping criterion, var 1e-4 const int max_outside_steps=1 ; // Maximum number of steps outside the box const int max_iter=50 ; // Max iterations = max_iter*dim. of problem extern double MacEpsilon ; // min {x >= 0 : 1 + x > 1} int local(Trial &, TBox &, TBox &, double, double*, Pobj, Pgrad, int, RCRVector) ; #endif