]> rtime.felk.cvut.cz Git - hubacji1/iamcar2.git/commitdiff
Add reset before algorithm run
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Tue, 10 Jan 2023 13:56:56 +0000 (14:56 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Tue, 10 Jan 2023 13:57:33 +0000 (14:57 +0100)
This is needed for resetting of obstacles when the values of the p.bc()
are set.

src/template-with-reset.cc

index aa2fa6a04d5c5dc8167d0e328224e47a9d104d20..a646958844200dff8b82324a3baddc0ab319f283 100644 (file)
@@ -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()) {}