Ignore:
Timestamp:
01/03/13 15:27:56 (12 years ago)
Author:
wcaarls
Message:

Updated extremum_seeking to revision 1177

Location:
trunk/extremum_seeking/esc_nn/include/esc_nn
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/extremum_seeking/esc_nn/include/esc_nn/nn_esc_2d.h

    r13 r18  
    2626protected:
    2727        double A_,M_,ddelta1_,ddelta2_,ddelta3_,delta_,B_, mpd_init_, w_switch_old_, a_switch1_old_, a_switch2_old_, a_switch3_old_,yr_,period_;
    28         double min_peak_,w_switch_;
    29         std::vector<double> vel_ref_;
     28        double min_peak_,w_switch_, stoping_min_val_, obj_val_cycle_init_;
     29        int stopping_cycle_number_, nn_cycle_count_;
     30        std::vector<double> vel_ref_,vel_ref_old_;
    3031        bool initialized_,min_peak_detect_init_;
     32
    3133
    3234public:
    3335        NNESC2D();
    34 
    35         NNESC2D(double A,double M, double B, double ddelta1, double ddelta2, double ddelta3, double delta, double period);
    36 
    37         void init(double A, double M, double B, double ddelta1, double ddelta2, double ddelta3, double delta, double period);
     36        NNESC2D(double A,double M, double B, double ddelta1, double ddelta2, double ddelta3, double delta, double period, int stopping_cycle_number, double stoping_min_val);
     37        void init(double A, double M, double B, double ddelta1, double ddelta2, double ddelta3, double delta, double period, int stopping_cycle_number, double stoping_min_val);
    3838
    3939        std::vector<double> step(double obj_val);
     
    4343        std::vector<std::string> monitorNames();
    4444        void reset();
     45        bool isStoppingConditionsMet();
    4546protected:
    4647        double wSwitch(double e);
Note: See TracChangeset for help on using the changeset viewer.