From: Jiri Vlasak Date: Tue, 10 Jan 2023 13:56:56 +0000 (+0100) Subject: Add reset before algorithm run X-Git-Url: https://rtime.felk.cvut.cz/gitweb/hubacji1/iamcar2.git/commitdiff_plain/954c60938a35fac937d624c1d9e582cffa91ec27 Add reset before algorithm run This is needed for resetting of obstacles when the values of the p.bc() are set. --- diff --git a/src/template-with-reset.cc b/src/template-with-reset.cc index aa2fa6a..a646958 100644 --- a/src/template-with-reset.cc +++ b/src/template-with-reset.cc @@ -81,6 +81,7 @@ int main() Json::Value best_path; Json::Value pj; double cost = 0.0; + p.reset(); while (icnt < 1000) { p.icnt(icnt); while (p.next()) {}