From 954c60938a35fac937d624c1d9e582cffa91ec27 Mon Sep 17 00:00:00 2001 From: Jiri Vlasak Date: Tue, 10 Jan 2023 14:56:56 +0100 Subject: [PATCH 1/1] Add reset before algorithm run This is needed for resetting of obstacles when the values of the p.bc() are set. --- src/template-with-reset.cc | 1 + 1 file changed, 1 insertion(+) 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()) {} -- 2.39.2