From: Jiri Vlasak Date: Fri, 3 Jan 2020 14:01:55 +0000 (+0100) Subject: Finish only after 5 secs, do not break X-Git-Tag: v0.3.0~2^2~1 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/hubacji1/rrts.git/commitdiff_plain/f80bcf3a525f6e8aef9b82207fc24db0ac013c97 Finish only after 5 secs, do not break --- diff --git a/src/rrts.cc b/src/rrts.cc index ecb6649..1facda2 100644 --- a/src/rrts.cc +++ b/src/rrts.cc @@ -45,8 +45,8 @@ bool RRTS::should_stop() bool RRTS::should_finish() { // decide finish conditions (maybe comment some lines) - if (this->icnt_ > 999) return true; - if (this->scnt_ > 10) return true; + //if (this->icnt_ > 999) return true; + if (this->scnt_ > 5) return true; if (this->gf()) return true; // but continue by default return false; @@ -55,7 +55,7 @@ bool RRTS::should_finish() bool RRTS::should_break() { // decide break conditions (maybe comment some lines) - if (this->scnt_ - this->pcnt_ > 2) return true; + //if (this->scnt_ - this->pcnt_ > 2) return true; // but continue by default return false; }